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

Unified Diff: runtime/vm/object_store.h

Issue 1448463004: Cleanups. More mutator thread asserts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 5 years, 1 month 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
« runtime/vm/compiler.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 09c24d736d9bc9c761defb1ae1df2aaa51066539..b6d5dfd41e434da98dae2524230726b95304ef28 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -359,6 +359,8 @@ class ObjectStore {
RawError* sticky_error() const { return sticky_error_; }
void set_sticky_error(const Error& value) {
+ // TODO(siva): Move sticky_error_ into thread specific area.
siva 2015/11/14 01:44:38 TODO(asiva)
srdjan 2015/11/16 17:25:51 Done.
+ ASSERT(Thread::Current()->IsMutatorThread());
ASSERT(!value.IsNull());
sticky_error_ = value.raw();
}
« runtime/vm/compiler.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698