blob: 005ec15e597e88114e8fd9aeb7b2e745fb28d137 [file] [log] [blame]
Andrew Top63c7ad42019-11-25 16:10:13 -08001// Copyright 2018 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --mock-arraybuffer-allocator --mock-arraybuffer-allocator-limit=1300000000
6
7// --mock-arraybuffer-allocator-limit should be above the hard limit external
8// for memory. Below that limit anything is opportunistic and may be delayed,
9// e.g., by tasks getting stalled and the event loop not being invoked.
10
11for (var i = 0; i < 1536; i++) {
12 let garbage = new ArrayBuffer(1024*1024);
13}