RFR: 8337622: IllegalArgumentException in java.lang.reflect.Field.get

Coleen Phillimore coleenp at openjdk.org
Wed Aug 7 18:38:03 UTC 2024


Make the object init_lock be an injected field in the mirror so that reflecting on componentType will not inadvertently return the init_lock.  The init_lock is a Java object and the VM holds it during class linking and uses it to set state during class initialization.
Tested with tier1-8.

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

Commit messages:
 - 8337622: IllegalArgumentException in java.lang.reflect.Field.get

Changes: https://git.openjdk.org/jdk/pull/20498/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20498&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337622
  Stats: 58 lines in 3 files changed: 51 ins; 7 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20498.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20498/head:pull/20498

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


More information about the hotspot-runtime-dev mailing list