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

Unified Diff: runtime/vm/object.cc

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
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 731c76771682b58b5a3801af298cd88e3dd9f434..d0d19486f6c32707beaf1a246fbfb70a772605de 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2829,6 +2829,7 @@ void Class::set_invocation_dispatcher_cache(const Array& cache) const {
void Class::Finalize() const {
+ ASSERT(Thread::Current()->IsMutatorThread());
// Even if all regular classes are prefinalized (precompilation), signature
// classes may be added later when we encounter local functions.
ASSERT(IsSignatureClass() || !Isolate::Current()->all_classes_finalized());

Powered by Google App Engine
This is Rietveld 408576698