On Fri, 23 Jan 2026 20:08:58 GMT, Chen Liang <[email protected]> wrote:

>> Since access descriptor is created for each VH operation site, we can 
>> optimistically cache the adapted method handle in a site if the site 
>> operates on a constant VH.  Used a C2 IR test to verify such a setup through 
>> an inexact VarHandle invocation can be constant folded through (previously, 
>> it was blocked by `asType`)
>
> Chen Liang has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Wording update, thanks Jorn

Changes requested by lmesnik (Reviewer).

test/jdk/java/lang/invoke/VarHandles/PolymorphicCallSiteInlineTest.java line 88:

> 86:                 payload2();
> 87:             }
> 88:         });

you need to join the threads, the jtreg MainWrapper is going to exit after main 
is completed even if non-daemon threads are still executed. 
See 
https://github.com/openjdk/jtreg/blob/5e7124604eb5e84b8c06d2c7662a71d2524e1f20/src/share/classes/com/sun/javatest/regtest/agent/MainWrapper.java#L83-L96

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

PR Review: https://git.openjdk.org/jdk/pull/28585#pullrequestreview-5229629430
PR Review Comment: https://git.openjdk.org/jdk/pull/28585#discussion_r4031894193

Reply via email to