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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 1250463004: Migrate NoSafepointScope; add constrained concurrent allocation to unit test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Ready for review. Created 5 years, 5 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/raw_object_snapshot.cc
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc
index 057f8e94aad173404a312fd080aead519a4baf17..40a8ac5bc8c043548db03e501a92a67c4444fe4e 100644
--- a/runtime/vm/raw_object_snapshot.cc
+++ b/runtime/vm/raw_object_snapshot.cc
@@ -2059,7 +2059,7 @@ RawOneByteString* OneByteString::ReadFrom(SnapshotReader* reader,
String& str_obj = String::Handle(reader->zone(), String::null());
if (kind == Snapshot::kFull) {
- ASSERT(reader->isolate()->no_safepoint_scope_depth() != 0);
+ ASSERT(Thread::Current()->no_safepoint_scope_depth() != 0);
siva 2015/07/22 17:52:49 Should this be reader->isolate()->mutator_thread(
koda 2015/07/22 19:55:47 I've now added a macro that combines the two asser
RawOneByteString* obj = reader->NewOneByteString(len);
str_obj = obj;
str_obj.set_tags(tags);
« no previous file with comments | « runtime/vm/object_graph.cc ('k') | runtime/vm/snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698