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

Commit e77f1e2

Browse files
bnoordhuisevanlucas
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 PR-URL: #12460 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yang Guo <yangguo@chromium.org>
1 parent 96b2faa commit e77f1e2

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

deps/v8/src/crankshaft/hydrogen-gvn.cc

Lines changed: 17 additions & 11 deletions

0 commit comments

Comments
 (0)