Commit e77f1e21 authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Evan Lucas
Browse files

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: https://github.com/nodejs/node/issues/11991
PR-URL: https://github.com/nodejs/node/pull/12460


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarYang Guo <yangguo@chromium.org>
parent 96b2faa7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment