Chromium Code Reviews| Index: runtime/vm/object.cc |
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
| index 79689346507076d9ad80316a2a4888335a6b6dd2..d9631aa18e6d69b1b79ca90dbdad3b658f49f055 100644 |
| --- a/runtime/vm/object.cc |
| +++ b/runtime/vm/object.cc |
| @@ -2736,6 +2736,9 @@ void Class::SetTraceAllocation(bool trace_allocation) const { |
| set_state_bits( |
| TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_)); |
|
Ivan Posva
2015/07/16 11:34:47
Why is this not under "if (changed)"?
Cutch
2015/07/16 14:34:07
My bad- https://codereview.chromium.org/1234943004
|
| if (changed) { |
| + Isolate* isolate = Isolate::Current(); |
| + ClassTable* class_table = isolate->class_table(); |
| + class_table->TraceAllocationsFor(id(), trace_allocation); |
| DisableAllocationStub(); |
| } |
| } |