RFR: 8265079: Implement VarHandle invoker caching [v3]

Mandy Chung mchung at openjdk.java.net
Wed Apr 14 23:01:38 UTC 2021


On Wed, 14 Apr 2021 11:38:15 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> This patch implements 2 leftover TODOs for implementing var handle invoker MH caching (lambda forms for those were already shared/cached).
>> 
>> This piggybacks on the existing mechanism for method handle invoker caching.
>> 
>> Testing: Local testing `java/lang/invoke` tests. Tier 1-3
>> 
>> Thanks,
>> Jorn
>
> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Review comment: simplify test

Marked as reviewed by mchung (Reviewer).

test/jdk/java/lang/invoke/TestVHInvokerCaching.java line 26:

> 24: /* @test
> 25:  * @bug 8265079
> 26:  * @run testng/othervm -Xverify:all -ea -esa TestVHInvokerCaching

Nit: the makefile to run jtreg set `-ea -esa`.   It's not strictly necessary in `@run`.  If you want to run it standalone, you can run with `jtreg -ea -esa` option.

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

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


More information about the core-libs-dev mailing list