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

Gilles Duboscq gdub at openjdk.org
Wed Jul 16 15:49:41 UTC 2025


On Wed, 16 Jul 2025 15:40:27 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> 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:
> 
>   test that getMirror on clinit returns null

Marked as reviewed by gdub (Committer).

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

PR Review: https://git.openjdk.org/jdk/pull/26346#pullrequestreview-3025670605


More information about the graal-dev mailing list