hg: jdk8u/jdk8u-dev/hotspot: 8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver

vladimir.kempik at oracle.com vladimir.kempik at oracle.com
Tue Apr 11 16:19:33 UTC 2017


Changeset: dcaab7b518c4
Author:    vkempik
Date:      2017-04-11 19:17 +0300
URL:       http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/dcaab7b518c4

8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver
Summary: Deoptimize if receiver null check of unresolved field access fails to throw NoClassDefFoundError instead of NPE.
Reviewed-by: vlivanov

! src/share/vm/c1/c1_LIR.cpp
! src/share/vm/c1/c1_LIR.hpp
! src/share/vm/c1/c1_LIRGenerator.cpp
+ test/compiler/c1/TestUnresolvedField.jasm
+ test/compiler/c1/TestUnresolvedFieldMain.java



More information about the jdk8u-dev-changes mailing list