Chromium Code Reviews

Unified Diff: src/spaces.cc

Issue 12082101: Release evacuation candidates after parallel sweeper threads completed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.cc
diff --git a/src/spaces.cc b/src/spaces.cc
index 01e1e300875ff7af6ca5b63a4bad161caa709655..2bbaa1e88d23b3294a9d424c3d94420a15b4d9f4 100644
--- a/src/spaces.cc
+++ b/src/spaces.cc
@@ -2577,7 +2577,9 @@ bool PagedSpace::EnsureSweeperProgress(intptr_t size_in_bytes) {
if (collector->AreSweeperThreadsActivated()) {
if (FLAG_concurrent_sweeping) {
if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) {
- collector->WaitUntilSweepingCompleted();
+ if (collector->WaitUntilSweepingCompleted()) {
+ collector->FinalizeSweeping();
+ }
return true;
}
return false;
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine