Reviewers: Hannes Payer,
Message:
PTAL
Description:
Restart idle GC round on context disposal.
BUG=chromium:460090
LOG=NO
Please review this at https://codereview.chromium.org/1105013002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+3, -3 lines):
M src/heap/gc-idle-time-handler.cc
Index: src/heap/gc-idle-time-handler.cc
diff --git a/src/heap/gc-idle-time-handler.cc
b/src/heap/gc-idle-time-handler.cc
index
a3383b9c0c0dcde34864a7fbbafef853d24d5d55..4d7414c2f75ba62b530939024da2e8c478e7b350
100644
--- a/src/heap/gc-idle-time-handler.cc
+++ b/src/heap/gc-idle-time-handler.cc
@@ -217,10 +217,10 @@ GCIdleTimeAction GCIdleTimeHandler::NothingOrDone() {
// that this currently may trigger a full garbage collection.
GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms,
HeapState heap_state) {
+ if (heap_state.contexts_disposed > 0) {
+ StartIdleRound();
+ }
if (static_cast<int>(idle_time_in_ms) <= 0) {
- if (heap_state.contexts_disposed > 0) {
- StartIdleRound();
- }
if (heap_state.incremental_marking_stopped) {
if (ShouldDoContextDisposalMarkCompact(
heap_state.contexts_disposed,
--
--
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.