v8: fix stack overflow in recursive method · nodejs/node@0c820c0 · GitHub
Skip to content

Commit 0c820c0

Browse files
bnoordhuisMylesBorins
authored andcommitted
v8: fix stack overflow in recursive method
HGlobalValueNumberingPhase::CollectSideEffectsOnPathsToDominatedBlock() used to self-recurse before this commit, causing stack overflows on systems with small stack sizes. Make it non-recursive by storing intermediate results in a heap-allocated list. Fixes: #11991 Backport-PR-URL: #13080 PR-URL: #12460 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
1 parent 639180a commit 0c820c0

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

deps/v8/src/hydrogen-gvn.cc

Lines changed: 17 additions & 11 deletions

0 commit comments

Comments
 (0)