hg: jdk9/hs/hotspot: 8173373: C1: NPE is thrown instead of LinkageError when accessing inaccessible field on NULL receiver
tobias.hartmann at oracle.com
tobias.hartmann at oracle.com
Tue Jan 31 19:00:40 UTC 2017
Changeset: 7fc338000594
Author: thartmann
Date: 2017-01-31 18:42 +0100
URL: http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/7fc338000594
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 jdk9-hs-changes
mailing list