[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 21:34:47 UTC 2018
Thanks Vladimir.
dl
On 1/17/18 11:05 AM, Vladimir Kozlov wrote:
> Very good.
>
> Thanks,
> Vladimir
>
> On 1/17/18 10:16 AM, dean.long at oracle.com wrote:
>> 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