Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1496)

Unified Diff: runtime/vm/object.cc

Issue 1408923005: Add IsMutatorThread to the Thread class and use it instead of MutatorThreadIsCurrentThread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« runtime/vm/debugger.h ('K') | « runtime/vm/longjump.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698