On Sat, 13 May 2023 00:52:22 GMT, Alex Menkov <amen...@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