test: remove impact of tier-up changes in worker stack size test · nodejs/node@0ea079b · GitHub
Skip to content

Commit 0ea079b

Browse files
joyeecheungaduh95
authored andcommitted
test: remove impact of tier-up changes in worker stack size test
The depth of the stack depends not only on the stack size, but also on the size of each stack frame, which in turn depends on which tier the recursive function happens to be running at when the overflow occurs. Under load the background tier-up can land at a non-deterministic point in the recursion and flake the test. Keep the recursive function in the interpreter with %NeverOptimizeFunction() so the frame size - and thus the depth - is deterministic. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: #64271 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 236dc4d commit 0ea079b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/parallel/test-worker-stack-overflow-stack-size.js

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)