On Fri, 20 Nov 2026 20:23:51 GMT, Chris Plummer <[email protected]> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Fix test failures appeared in mach5 tier-6
>
> test/hotspot/jtreg/serviceability/jvmti/valhalla/GetCtorLocal/GetCtorLocalStrictInitFields.java
>  line 468:
> 
>> 466:                     while (!test.canContinue) {}
>> 467:                 }
>> 468:                 Reference.reachabilityFence(this);
> 
> Can  you explain the need for this?

This is the case with a value class without fields. JIT compiler can optimize 
it throw away `this`.
It is needed to keep the real value of this object in slot 0.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33526#discussion_r4647666877

Reply via email to