RFR: 8362306: HotSpotJVMCIRuntime.getMirror can crash [v3]

Doug Simon dnsimon at openjdk.org
Wed Jul 16 13:17:04 UTC 2025


> This PR fixes `HotSpotJVMCIRuntime.getMirror(ResolvedJavaMethod method)` and `HotSpotJVMCIRuntime.getMirror(ResolvedJavaField field)` so that they return null for `<clinit>` and an injected field respectively instead of crashing.

Doug Simon has updated the pull request incrementally with two additional commits since the last revision:

 - fixed bug in use of JVMCI traps
 - moved inject field check into check_field for benefit of get_encoded_annotation_data

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26346/files
  - new: https://git.openjdk.org/jdk/pull/26346/files/cca137a3..c76efe51

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

  Stats: 17 lines in 1 file changed: 8 ins; 4 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/26346.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26346/head:pull/26346

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


More information about the graal-dev mailing list