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

Unified Diff: runtime/vm/class_table.cc

Issue 2305493002: Address additional comments re class id sorting. (Closed)
Patch Set: Created 4 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 | « no previous file | runtime/vm/isolate.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 6a8947891fb5941aafde4f483cead98f098bceea..989bf9ccff538304a32c135c5ae0c61aaf937659 100644
--- a/runtime/vm/class_table.cc
+++ b/runtime/vm/class_table.cc
@@ -213,6 +213,7 @@ void ClassTable::Unregister(intptr_t index) {
#if defined(DART_PRECOMPILER)
void ClassTable::Remap(intptr_t* old_to_new_cid) {
+ ASSERT(Thread::Current()->no_safepoint_scope_depth() > 0);
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 | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698