Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 01e1e300875ff7af6ca5b63a4bad161caa709655..f5f7d6af0e6b45cc3637a91b46048484cc5689b1 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -2578,6 +2578,7 @@ bool PagedSpace::EnsureSweeperProgress(intptr_t size_in_bytes) { |
if (FLAG_concurrent_sweeping) { |
if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) { |
collector->WaitUntilSweepingCompleted(); |
+ collector->FinalizeSweeping(); |
return true; |
} |
return false; |