From 91ccf84be7b24baeb83a84044790c99df100e646 Mon Sep 17 00:00:00 2001 From: Malinin Andrey Date: Tue, 14 May 2024 18:12:19 +0800 Subject: [PATCH] Increasing huge object size for GC test Issue: #I95OKW Testing: ninja tests Signed-off-by: Malinin Andrey --- tests/runtime/common/gc/startGc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runtime/common/gc/startGc.js b/tests/runtime/common/gc/startGc.js index 22efb0eb7..e36fa616f 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; -- Gitee