Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 63516e9d5bc6f531432bfee6155c80cccdf3e210..37937607faffbee22881acfc5961af2afb298b2d 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -1830,7 +1830,7 @@ RawObject* Object::Allocate(intptr_t cls_id, |
Thread* thread = Thread::Current(); |
Isolate* isolate = thread->isolate(); |
// New space allocation allowed only in mutator thread (Dart thread); |
- ASSERT(isolate->MutatorThreadIsCurrentThread() || (space != Heap::kNew)); |
+ ASSERT(thread->IsMutatorThread() || (space != Heap::kNew)); |
ASSERT(thread->no_callback_scope_depth() == 0); |
Heap* heap = isolate->heap(); |