Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 5f51dec2882cab9c473032d47c15bfce5d711105..ebe0cb121c34d0eec9a2f11272bdb9ddef53bf3d 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1446,6 +1446,9 @@ |
// after the inner pointer. |
Page* page = Page::FromAddress(inner_pointer); |
+ DCHECK_EQ(page->owner(), heap->code_space()); |
+ heap->mark_compact_collector()->SweepOrWaitUntilSweepingCompleted(page); |
+ |
Address addr = page->skip_list()->StartFor(inner_pointer); |
Address top = heap->code_space()->top(); |