Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index ff4d497e028904dd7478c0b7ddcf670d2f81de9c..e9c1aaacf0b6138ba5ca8f0be5b0f51373df4c2b 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -1843,7 +1843,7 @@ RawObject* Object::Allocate(intptr_t cls_id, |
} |
const Class& cls = Class::Handle(class_table->At(cls_id)); |
if (cls.TraceAllocation(isolate)) { |
- Profiler::RecordAllocation(isolate, cls_id); |
+ Profiler::RecordAllocation(thread, cls_id); |
} |
NoSafepointScope no_safepoint; |
InitializeObject(address, cls_id, size, (isolate == Dart::vm_isolate())); |