mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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
|
||
|
}
|
||
|
});
|
||
|
|