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

Wang Huang whuang at openjdk.java.net
Sun Apr 11 02:24:46 UTC 2021


On Fri, 9 Apr 2021 19:54:44 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> 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
>
> The issue happens because the test was run with `-Xcomp` flag. The method was not executed in Interpreter and class was not initialized before the method is JIT compiled.
> I agree with @dholmes-ora that we should not fix it in Deoptimizer. I think we should restrict "Optimization of Box nodes in uncommon_trap" [8261137 ](https://bugs.openjdk.java.net/browse/JDK-8261137) only to cases when  class is initialized.

> @vnkozlov and @Wanghuang-Huawei,
> This failure has now reached Tier8 and we have 8 failures (so far).
> I haven't seen a response to my query on Friday. Please ProblemList
> this test if the fix is not going to be integrated soon.

I am very sorry about that.I have fixed this  issue in a new way and  test it on my  x86 and  aarch64 machine. I think I will push a new  commit  tomorrow.

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

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


More information about the hotspot-dev mailing list