[15] RFR(S): 8246203: Segmentation fault in verification due to stack overflow with -XX:+VerifyIterativeGVN
Christian Hagedorn
christian.hagedorn at oracle.com
Tue Jun 9 15:26:22 UTC 2020
Hi
Please review the following patch:
https://bugs.openjdk.java.net/browse/JDK-8246203
http://cr.openjdk.java.net/~chagedorn/8246203/webrev.00/
The testcase creates a deep graph with a lot of nodes on a chain. When
running with -XX:+VerifyIterativeGVN, it recursively calls
Node::verify_recur() for each input node discovered which eventually
results in a segmentation fault due to a stack overflow (around 10000
recursive calls due to such a long chain of nodes). The fix just
converts the recursive algorithm into an iterative one to avoid a
segmentation fault.
Thank you!
Best regards,
Christian
More information about the hotspot-compiler-dev
mailing list