RFR: 8305066: [JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized
Doug Simon
dnsimon at openjdk.org
Fri Mar 31 15:27:47 UTC 2023
On Fri, 31 Mar 2023 14:54:52 GMT, Igor Veresov <iveresov at openjdk.org> wrote:
>> Class initialization can fail for the boxing caches such as `Long$LongCache` due to things such as a `StackOverflowError`.
>> When rematerializing boxed values during deoptimization, a failed cache initialization must be handled. This PR handles it by throwing an OOME which is always semantically correct.
>>
>> Note that a VM with a broken boxing cache is going to be in a fairly miserable state (i.e. throwing `NoClassDefFoundError` on every call to `Long.valueOf`) so the OOME shouldn't cause any noticeable problem.
>
> Looks ok
Thanks @veresov and @tkrodriguez for reviewing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13229#issuecomment-1492115487
More information about the hotspot-dev
mailing list