Reviewers: jarin, Yang,
Description:
Do not scavenge while marking incrementally when FLAG_gc_global is on.
BUG=
Please review this at https://codereview.chromium.org/281573002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/heap.cc
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
219584b2c41db96c94666c15bf5b6372d5ece376..ddec9a9f8dd0c7bceebe2b17305d84de20a34cdd
100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -790,7 +790,7 @@ bool Heap::CollectGarbage(GarbageCollector collector,
const intptr_t kStepSizeWhenDelayedByScavenge = 1 * MB;
incremental_marking()->Step(kStepSizeWhenDelayedByScavenge,
IncrementalMarking::NO_GC_VIA_STACK_GUARD);
- if (!incremental_marking()->IsComplete()) {
+ if (!incremental_marking()->IsComplete() && !FLAG_gc_global) {
if (FLAG_trace_incremental_marking) {
PrintF("[IncrementalMarking] Delaying MarkSweep.\n");
}
--
--
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.