RFR: 8352075: Perf regression accessing fields [v4]

Radim Vansa rvansa at openjdk.org
Thu May 15 12:27:55 UTC 2025


On Mon, 12 May 2025 16:45:58 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Move constant to static final var
>
> Changes requested by cjplummer (Reviewer).

@plummercj When I've applied your suggestion to load the constant, I've triggered an error in some tests on MacOS and Windows (not sure if this is specific to those platforms or if this is only about timing...). Do you think this is still viable?

java.lang.RuntimeException: VM.initialize() was not yet called
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.getVM(VM.java:576)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.Field.<clinit>(Field.java:36)

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

PR Comment: https://git.openjdk.org/jdk/pull/24847#issuecomment-2883635142


More information about the hotspot-dev mailing list