Wait for sweepter threads in idle notifcation with large hints.

BUG=
R=ulan@chromium.org

Review URL: https://codereview.chromium.org/259243002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21067 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
hpayer@chromium.org 2014-04-29 19:01:41 +00:00
parent 22cdf0c0fd
commit e0a3541645

View File

@ -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;
}