Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 8869d3583e10dcac6793ff77d238d1709a2a4bf9..a8864818fe9d9e70e3248c1e2cbf330da6676ddc 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -2738,6 +2738,9 @@ void Class::SetTraceAllocation(bool trace_allocation) const { |
set_state_bits( |
TraceAllocationBit::update(trace_allocation, raw_ptr()->state_bits_)); |
if (changed) { |
+ Isolate* isolate = Isolate::Current(); |
+ ClassTable* class_table = isolate->class_table(); |
+ class_table->TraceAllocationsFor(id(), trace_allocation); |
DisableAllocationStub(); |
} |
} |