xref: /third_party/node/test/fixtures/gc.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_cilet arr = new Array(300_000).fill('a');
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_cifor (let index = 0; index < arr.length; index++) {
41cb0ef41Sopenharmony_ci  arr[index] = Math.random();
51cb0ef41Sopenharmony_ci}
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciarr = [];
81cb0ef41Sopenharmony_ci// .gc() is called to generate a Mark-sweep event
91cb0ef41Sopenharmony_ciglobal.gc();
10

Indexes created Thu Nov 07 10:32:03 CST 2024