Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 66bcf3d448445ba6d93c207a7ea73dcd92f59fe6..c978f72c29db911d98fefde0833cfc09cb2c3bd2 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1446,6 +1446,10 @@ Code* InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer( |
// after the inner pointer. |
Page* page = Page::FromAddress(inner_pointer); |
+ DCHECK(page->owner() == heap->code_space()); |
+ heap->mark_compact_collector()->EnsureSweepingCompleted( |
+ page, reinterpret_cast<PagedSpace*>(page->owner())); |
+ |
Address addr = page->skip_list()->StartFor(inner_pointer); |
Address top = heap->code_space()->top(); |