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

Doug Simon dnsimon at openjdk.org
Wed Jul 16 08:48:53 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 refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  fixed bug in HotSpotJVMCIRuntime.getMirror for <clinit> and injected fields

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

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

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

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