Skip to content

Commit c694999

Browse files
trivikraduh95
authored andcommitted
test: disable Maglev in near-heap-limit worker test
The test expects the worker to run out of memory during startup while creating the message port. With Maglev enabled, the tiny worker heap can be exhausted earlier while generating deoptimization data, which changes the failure mode. Disable Maglev so the induced OOM reaches the path covered by the test. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63398 Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-05-18.md#jstest-failure Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent a6d6d51 commit c694999

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/parallel/test-worker-nearheaplimit-deadlock.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// Flags: --no-node-snapshot
1+
// Flags: --no-node-snapshot --no-maglev
22
// With node snapshot the OOM can occur during the deserialization of the
33
// context, so disable it since we want the OOM to occur during the creation of
44
// the message port.
5+
// With Maglev, the OOM can occur during compilation instead, so disable it for
6+
// the same reason.
57
'use strict';
68
const common = require('../common');
79
const assert = require('assert');

0 commit comments

Comments
 (0)