RFR: 8264940: java/lang/invoke/6998541/Test6998541.java failed "guarantee(ik->is_initialized()) failed: java/lang/Byte$ByteCache must be initialized"

David Holmes dholmes at openjdk.java.net
Fri Apr 9 12:01:13 UTC 2021


On Fri, 9 Apr 2021 11:40:34 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> *  The main reason is that in this situation the `BoxCache` is not initialized before `uncommon_trap`.
>> *  `java.lang.Byte$ByteCache` is loaded without initializing here 
>> * I think that all `*Cache` classes should be loaded in this situation.
>
> Changes requested by coleenp (Reviewer).

To evaluate what is the right fix for this problem I need to understand how  JDK-8261137 caused the problem. Can you explain that please? When was this class normally initialized?

Simply initializing the class at the point where you thought it already should have been initialized may not be the right solution, and as Coleen has pointed out you have to deal with any exceptions that may occur during that initialization.

Thanks,
David

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

PR: https://git.openjdk.java.net/jdk/pull/3411


More information about the hotspot-dev mailing list