diff --git a/tests/runtime/common/gc/startGc.js b/tests/runtime/common/gc/startGc.js index 22efb0eb7cc34f4d8fd74cdbe499ac9eb5107cbd..e36fa616fda5a0f7b4c905cce5a5cbe4dd2cd254 100644 --- a/tests/runtime/common/gc/startGc.js +++ b/tests/runtime/common/gc/startGc.js @@ -20,10 +20,10 @@ import { assert, newWeakRefInYoung } from 'common.abc'; // allocate an object of size in bytes at least 'sizeInBytes' function allocLargeObject() { - // Ctor Array(length) doesn't allocates the internal JSTaggedValue array. + // Ctor Array(length) doesn't allocate the internal JSTaggedValue array. // Only length setter does this. let big = new Array(); - for (let i = 0; i < 60; ++i) { + for (let i = 0; i < 120; ++i) { let a = allocateArrayObject(1024 * 8); if (i % 2 == 0) { big[i] = a;