RFR: 8293044: C1: Missing access check on non-accessible class [v2]

Vladimir Ivanov vlivanov at openjdk.org
Fri Sep 9 17:21:12 UTC 2022


> C1 erroneously omits some access checks on symbolically referenced classes.
> 
> Proposed fix relies on code patching to throw proper resolution error when required.
> 
> Also, to avoid repeated recompilations on platforms which don't support code
> patching, the nmethod is not marked as non-entrant when corresponding constant
> pool entry is in error state.
> 
> Testing: hs-tier1 - hs-tier4

Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision:

  Update src/hotspot/share/ci/ciStreams.cpp
  
  Co-authored-by: Tobias Hartmann <tobias.hartmann at oracle.com>

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/10222/files
  - new: https://git.openjdk.org/jdk/pull/10222/files/cb9a7bb3..8a3286f7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10222&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10222&range=00-01

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/10222.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10222/head:pull/10222

PR: https://git.openjdk.org/jdk/pull/10222


More information about the hotspot-compiler-dev mailing list