RFR: 8306467: Fix nsk/jdb/kill/kill001 to work with new JVMTI StopThread support for virtual threads.
    Chris Plummer 
    cjplummer at openjdk.org
       
    Sat May 13 04:01:50 UTC 2023
    
    
  
On Sat, 13 May 2023 00:52:22 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> looks like we just need to move synchronized (or some other code to force vthread to be mounted) to inside the try and remove Thread.sleep, no other statements are needed.
That should work. At first I was unsure because the async exception is not actually thrown until executing the next statement after the synchronized. But there should be a branch at the end of the try block, and the exception should be thrown before it is executed. Hopefully the exception table covers that bytecode as being in the try block.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13967#discussion_r1192912217
    
    
More information about the serviceability-dev
mailing list