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

Unified Diff: runtime/vm/class_table.cc

Issue 2995543004: [vm, gc] Require a safepoint for heap iteration. (Closed)
Patch Set: explicit-thread Created 3 years, 4 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/class_finalizer.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.cc
diff --git a/runtime/vm/class_table.cc b/runtime/vm/class_table.cc
index 0bf1d1a02f4b62a2d63186b76887a8fefd161b42..c223095feac7357b4c1113e3b4139f73ef88b46a 100644
--- a/runtime/vm/class_table.cc
+++ b/runtime/vm/class_table.cc
@@ -205,7 +205,7 @@ void ClassTable::Unregister(intptr_t index) {
#endif
void ClassTable::Remap(intptr_t* old_to_new_cid) {
- ASSERT(Thread::Current()->no_safepoint_scope_depth() > 0);
+ ASSERT(Thread::Current()->IsAtSafepoint());
intptr_t num_cids = NumCids();
RawClass** cls_by_old_cid = new RawClass*[num_cids];
for (intptr_t i = 0; i < num_cids; i++) {
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698