Index: Source/bindings/core/v8/V8GCController.cpp |
diff --git a/Source/bindings/core/v8/V8GCController.cpp b/Source/bindings/core/v8/V8GCController.cpp |
index fb0869032cf7fff08b654c4135a471d92da4fe00..b367522e1ba7cc08c9dda849e287f11d02e8edc9 100644 |
--- a/Source/bindings/core/v8/V8GCController.cpp |
+++ b/Source/bindings/core/v8/V8GCController.cpp |
@@ -411,10 +411,10 @@ void V8GCController::gcEpilogue(v8::GCType type, v8::GCCallbackFlags flags) |
// to collect all garbage, you need to wait until the next event loop. |
// Regarding (2), it would be OK in practice to trigger only one GC per gcEpilogue, because |
// GCController.collectAll() forces 7 V8's GC. |
- Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGCForTesting); |
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::ForcedGC); |
// Forces a precise GC at the end of the current event loop. |
- ThreadState::current()->setGCState(ThreadState::GCScheduledForTesting); |
+ ThreadState::current()->setGCState(ThreadState::FullGCScheduled); |
} |
TRACE_EVENT_END1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "GCEvent", "usedHeapSizeAfter", usedHeapSize(isolate)); |