[10] RFR(S) 8194988: 8 Null pointer dereference defect groups related to MultiNode::proj_out()
dean.long at oracle.com
dean.long at oracle.com
Wed Jan 17 18:16:15 UTC 2018
http://cr.openjdk.java.net/~dlong/8194988/webrev/
https://bugs.openjdk.java.net/browse/JDK-8194988
I introduced MultiNode::proj_out_or_null() for paths that either check
the result before dereferencing or don't dereference at all. Paths that
dereference without checking the return value will continue using
proj_out(), where I added an assert that the return value is not NULL.
This preserves current behavior except that we will assert instead of
trapping with SEGV, and it makes the static analyzer happy.
dl
More information about the hotspot-compiler-dev
mailing list