RFR: 8264940: java/lang/invoke/6998541/Test6998541.java failed "guarantee(ik->is_initialized()) failed: java/lang/Byte$ByteCache must be initialized" [v2]
Wang Huang
whuang at openjdk.java.net
Mon Apr 12 02:15:59 UTC 2021
On Fri, 9 Apr 2021 11:58:02 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> 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
@dholmes-ora @vnkozlov @dcubed-ojdk @coleenp I fixed the bug according to @vnkozlov's suggestion.
I added method `is_box_cache_valid` to judge if a box cache class is ready.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3411
More information about the hotspot-dev
mailing list