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

Unified Diff: src/heap.cc

Issue 259243002: Wait for sweepter threads in idle notifcation with large hints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698