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:
parent
22cdf0c0fd
commit
e0a3541645
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user