xref: /third_party/node/test/fixtures/workload/grow-worker-and-set-near-heap-limit.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/workload/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst path = require('path');
31cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads');
41cb0ef41Sopenharmony_ciconst max_snapshots = parseInt(process.env.TEST_SNAPSHOTS) || 1;
51cb0ef41Sopenharmony_cinew Worker(path.join(__dirname, 'grow-and-set-near-heap-limit.js'), {
61cb0ef41Sopenharmony_ci  env: {
71cb0ef41Sopenharmony_ci    ...process.env,
81cb0ef41Sopenharmony_ci    limit: max_snapshots,
91cb0ef41Sopenharmony_ci  },
101cb0ef41Sopenharmony_ci  resourceLimits: {
111cb0ef41Sopenharmony_ci    maxOldGenerationSizeMb:
121cb0ef41Sopenharmony_ci      parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20
131cb0ef41Sopenharmony_ci  }
141cb0ef41Sopenharmony_ci});
151cb0ef41Sopenharmony_ci
16

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