[coverage] Trigger deterministic GC in coverage tests
A few coverage tests depend on a GC run that deterministically frees all dead objects, but Runtime::kCollectGarbage did not explicitly disable incremental marking. Incremental marking makes liveness detection timing-dependent and thus should be disabled here. NOTRY=true NOPRESUBMIT=true TBR=mlippautz@chromium.org Bug: v8:7108 Change-Id: I8bebe612bbc2126b8ad778af15f08442ccc91a35 Reviewed-on: https://chromium-review.googlesource.com/781865 Commit-Queue: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#49544}
This commit is contained in:
parent
2976d14fa2
commit
136b4edbea
@ -1480,7 +1480,7 @@ RUNTIME_FUNCTION(Runtime_GetDebugContext) {
|
||||
RUNTIME_FUNCTION(Runtime_CollectGarbage) {
|
||||
SealHandleScope shs(isolate);
|
||||
DCHECK_EQ(1, args.length());
|
||||
isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
|
||||
isolate->heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask,
|
||||
GarbageCollectionReason::kRuntime);
|
||||
return isolate->heap()->undefined_value();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user