Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 381ae506e67990cd42c5baf2d57faf8ef207e1f2..f054e2cc98710ef08ed856f389d83a73cdd2e9d4 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4475,6 +4475,12 @@ bool Heap::IdleNotification(int hint) { |
return true; |
} |
+ // If the IdleNotifcation is called with a large hint we will wait for |
+ // the sweepter threads here. |
+ if (hint >= kMinHintForFullGC && IsConcurrentSweepingInProgress()) { |
+ WaitUntilSweepingCompleted(); |
+ } |
+ |
return false; |
} |