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++) { |