RFR: 8308400: add ForceEarlyReturn support for virtual threads [v2]

Andrey Turbanov aturbanov at openjdk.org
Mon May 22 09:02:53 UTC 2023


On Sat, 20 May 2023 00:21:04 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

>> This enhancement adds ForceEarlyReturnXXX support for virtual threads. The spec defines minimal support that the JVMTI ForceEarlyReturnXXX can be used for a virtual thread suspended an an event.
>> Actually, the ForceEarlyReturnXXX can supports suspended and mounted virtual threads.
>> 
>> CSR (approved): https://bugs.openjdk.org/browse/JDK-8308401 add ForceEarlyReturn support for virtual threads
>> 
>> Testing:
>> New test was developed: serviceability/vthread/ForceEarlyReturnTest.
>> Submitted mach5 tiers 1-6 are good.
>> TBD: rerun mach5 tiers 1-6 at the end of review again if necessary.
>
> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
> 
>   minor tweak in libForceEarlyReturnTest.cpp

test/hotspot/jtreg/serviceability/jvmti/vthread/ForceEarlyReturnTest/ForceEarlyReturnTest.java line 65:

> 63:     static final String  expValB1 = "B1";
> 64:     static final String  expValB2 = "B2";
> 65:     static final String  expValB3 = "B3";

nit
Suggestion:

    static final String expValB1 = "B1";
    static final String expValB2 = "B2";
    static final String expValB3 = "B3";

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14067#discussion_r1200212515


More information about the hotspot-dev mailing list