mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
e62f6ce630
PR-URL: https://github.com/nodejs/node/pull/44420 Refs: https://github.com/nodejs/node/pull/33010 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
16 lines
396 B
JavaScript
16 lines
396 B
JavaScript
'use strict';
|
|
const path = require('path');
|
|
const { Worker } = require('worker_threads');
|
|
const max_snapshots = parseInt(process.env.TEST_SNAPSHOTS) || 1;
|
|
new Worker(path.join(__dirname, 'grow-and-set-near-heap-limit.js'), {
|
|
env: {
|
|
...process.env,
|
|
limit: max_snapshots,
|
|
},
|
|
resourceLimits: {
|
|
maxOldGenerationSizeMb:
|
|
parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20
|
|
}
|
|
});
|
|
|