[9] RFR(S): 8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Tue Jan 31 12:25:54 UTC 2017


Good catch!

> I missed that the problem also affects putfield (of course). I extended the test accordingly and added the same fix to LIRGenerator::do_StoreField():
> http://cr.openjdk.java.net/~thartmann/8173373/webrev.03/

Can you try to factor new code into a helper method?

Otherwise, looks good.

Best regards,
Vladimir Ivanov

> On 30.01.2017 13:51, Tobias Hartmann wrote:
>> Thanks, Vladimir!
>>
>> Best regards,
>> Tobias
>>
>> On 30.01.2017 13:48, Vladimir Ivanov wrote:
>>>> http://cr.openjdk.java.net/~thartmann/8173373/webrev.02/
>>>
>>> Looks good.
>>>
>>> Best regards,
>>> Vladimir Ivanov


More information about the hotspot-compiler-dev mailing list