Chromium Code Reviews| Index: runtime/vm/heap.cc |
| =================================================================== |
| --- runtime/vm/heap.cc (revision 40629) |
| +++ runtime/vm/heap.cc (working copy) |
| @@ -368,8 +368,10 @@ |
| void Heap::UpdatePretenurePolicy() { |
| if (FLAG_disable_alloc_stubs_after_gc) { |
| ClassTable* table = isolate_->class_table(); |
| - for (intptr_t cid = kNumPredefinedCids; cid < table->NumCids(); ++cid) { |
| - if (table->IsValidIndex(cid) && table->HasValidClassAt(cid)) { |
| + for (intptr_t cid = 1; cid < table->NumCids(); ++cid) { |
| + if ((cid >= kNumPredefinedCids || cid == kArrayCid) && |
|
srdjan
2014/09/25 17:42:53
Please add parentheses.
koda
2014/09/25 21:49:25
Done.
|
| + table->IsValidIndex(cid) && |
| + table->HasValidClassAt(cid)) { |
| const Class& cls = Class::Handle(isolate_, table->At(cid)); |
| cls.SwitchAllocationStub(); |
| } |