RFR: 8305066: [JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized

Doug Simon dnsimon at openjdk.org
Wed Mar 29 16:13:35 UTC 2023


On Wed, 29 Mar 2023 15:19:03 GMT, Tom Rodriguez <never at openjdk.org> wrote:

>> src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java line 195:
>> 
>>> 193:                     JVMCI.getRuntime();
>>> 194:                 }
>>> 195:                 // Make sure all the primitive box caches are populated (required to properly
>> 
>> This code has not been necessary ever since https://github.com/openjdk/jdk/blob/e56bcb04b11c6494e6afdf0bd9b9bc65a4769347/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp#L985 was added.
>
> How are the caches uninitialized if we have forced their initialization?

A box cache initialization can fail due to `StackOverflowError`. In this case, we must not rematerialize a virtual object corresponding to a value that would be read from a box cache.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13229#discussion_r1152181352


More information about the hotspot-dev mailing list