hg: jdk9/hs-comp/hotspot: 8050978: Fix bad field access check in C1 and C2
vladimir.kozlov at oracle.com
vladimir.kozlov at oracle.com
Wed Jul 23 19:17:17 UTC 2014
Changeset: c8e602d67072
Author: goetz
Date: 2014-07-18 09:04 +0200
URL: http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/c8e602d67072
8050978: Fix bad field access check in C1 and C2
Summary: JCK8 test vm/constantpool/accessControl/accessControl004/accessControl00402m3/accessControl00402m3.html fails with -Xbatch -Xcomp due to bad field access check in C1 and C2. Fix: In ciField::ciField(), just before the canonical holder is stored into the _holder variable (and which is used by ciField::will_link()) perform an additional access check with the holder declared in the class file. If this check fails, store the declared holder instead and ciField::will_link() will bail out compilation for this field later on. Then, the interpreter will throw an PrivilegedAccessException at runtime.
Reviewed-by: kvn, vlivanov
Contributed-by: andreas.schoesser at sap.com
! src/share/vm/ci/ciField.cpp
More information about the jdk9-hs-comp-changes
mailing list