We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d5e03 commit 7724d38Copy full SHA for 7724d38
test/pummel/test-vm-memleak.js
@@ -20,7 +20,7 @@
20
// USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
'use strict';
23
-// Flags: --max_old_space_size=32
+// Flags: --max_old_space_size=32 --expose_gc
24
25
require('../common');
26
const assert = require('assert');
@@ -34,6 +34,7 @@ const interval = setInterval(function() {
34
} catch {
35
}
36
37
+ global.gc();
38
const rss = process.memoryUsage.rss();
39
assert.ok(rss < 64 * 1024 * 1024,
40
`memory usage: ${rss} (${Math.round(rss / (1024 * 1024))} MB)`);
0 commit comments