Commit e0a35416 authored by hpayer@chromium.org's avatar hpayer@chromium.org

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
parent 22cdf0c0
...@@ -4475,6 +4475,12 @@ bool Heap::IdleNotification(int hint) { ...@@ -4475,6 +4475,12 @@ bool Heap::IdleNotification(int hint) {
return true; 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; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment