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

Unified Diff: runtime/vm/isolate.cc

Issue 1185013005: Assert helper threads do not (yet) attempt to access the "current zone". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/base_isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 8d0c3c12f66fb5025e95c0a039283569b5855a27..08d0ba6b39d6db27be3ba16264864bf6a6026faa 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -603,6 +603,11 @@ void Isolate::Flags::CopyTo(Dart_IsolateFlags* api_flags) const {
void BaseIsolate::AssertCurrent(BaseIsolate* isolate) {
ASSERT(isolate == Isolate::Current());
}
+
+void BaseIsolate::AssertCurrentThreadIsMutator() const {
+ ASSERT(Isolate::Current() == this);
+ ASSERT(Isolate::Current()->mutator_thread() == Thread::Current());
+}
#endif // defined(DEBUG)
#if defined(DEBUG)
« no previous file with comments | « runtime/vm/base_isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698