d1070e417f
Instead of forcing GC right away, the function now post a task and performance GC from the task with an empty stack to avoid false positive pointers in conservative stack scanning. Bug: chromium:1098187 Change-Id: I88864845a1e395056c5d5f6e867ad774b87dbb6a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2307217 Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org> Reviewed-by: Peter Marshall <petermarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#69444}
17 lines
628 B
JavaScript
17 lines
628 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --no-stress-incremental-marking
|
|
|
|
let {session, contextGroup, Protocol} =
|
|
InspectorTest.start('Tests that contextDesrtoyed nofitication is fired when context is collected.');
|
|
|
|
(async function test() {
|
|
await Protocol.Runtime.enable();
|
|
Protocol.Runtime.onExecutionContextDestroyed(InspectorTest.logMessage);
|
|
contextGroup.addScript('inspector.freeContext()');
|
|
await Protocol.HeapProfiler.collectGarbage();
|
|
InspectorTest.completeTest();
|
|
})();
|