RFR: 8362306: HotSpotJVMCIRuntime.getMirror can crash [v4]
Gilles Duboscq
gdub at openjdk.org
Wed Jul 16 15:12:40 UTC 2025
On Wed, 16 Jul 2025 15:03:36 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:
>
> revert from JVMCI_CHECK_NULL back to JVMCIENV in final return statement of method
Maybe you could add a test in `TestResolvedJavaType.getClassInitializer` to check that `getMirror` doesn't crash on that and returns null?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26346#issuecomment-3079072065
More information about the graal-dev
mailing list