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

Doug Simon dnsimon at openjdk.org
Wed Jul 16 15:03:36 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 one additional commit since the last revision:

  revert from JVMCI_CHECK_NULL back to JVMCIENV in final return statement of method

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

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

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

  Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 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