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

Unified Diff: src/frames.cc

Issue 1225733002: Reland concurrent sweeping of code space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698