Reviewers: ulan,
Message:
Committed patchset #2 manually as r21067 (presubmit successful).
Description:
Wait for sweepter threads in idle notifcation with large hints.
BUG=
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=21067
Please review this at https://codereview.chromium.org/259243002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+6, -0 lines):
M src/heap.cc
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;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.