[8u] RFR 8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver

Vladimir Kempik vladimir.kempik at oracle.com
Mon Apr 10 17:18:40 UTC 2017


Please review this backport of 8173373 for jdk8u.

The fix applied cleanly to jdk8, except one place:

in src/share/vm/c1/c1_LIR.cpp

I had to change

+    CodeStub* deopt = new DeoptimizeStub(info, 
Deoptimization::Reason_null_check, Deoptimization::Action_none);


+    CodeStub* deopt = new DeoptimizeStub(info);

The fix passes jprt and testcase.

Bug: https://bugs.openjdk.java.net/browse/JDK-8173373
Webrev: http://cr.openjdk.java.net/~vkempik/8173373/webrev.00/


More information about the hotspot-compiler-dev mailing list