Andrew Top | 63c7ad4 | 2019-11-25 16:10:13 -0800 | [diff] [blame] | 1 | // 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 | |
| 11 | for (var i = 0; i < 1536; i++) { |
| 12 | let garbage = new ArrayBuffer(1024*1024); |
| 13 | } |