03e7e3e77a
Keep --gc-interval precise wrt to the # of allocations needed for a GC. Bug: v8:12615 Change-Id: I1ff45ef709013427b5f27643e3a6135dd0f4025d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3485676 Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/main@{#79256}
16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
// Copyright 2019 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: --stress-compaction --detailed-error-stack-trace --gc-interval=6
|
|
|
|
function add(a, b) {
|
|
throw new Error();
|
|
}
|
|
for (let i = 0; i < 100; ++i) {
|
|
try {
|
|
add(1, 2);
|
|
} catch (e) {
|
|
}
|
|
}
|