On Fri, 20 Nov 2026 21:32:33 GMT, Chris Plummer <[email protected]> wrote:

>> This is the case with a value class without fields. JIT compiler can 
>> optimize it by throwing away `this` in slot 0. The line 468 is needed to 
>> keep the real value of this object in slot 0. It is needed in the native 
>> call to `testGetLocalInstance()` as it has a check for non-nullness for the 
>> value returned by the JVMTI `GetLocalInstance()` and `GetLocalObject()` for 
>> slot 0.
>
> Ok. I think it would be good to add a comment about this.

Thanks. Added a comment now.
In fact, it did not help. The test is still failing with the same pattern.

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

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

Reply via email to