On Mon, 12 May 2025 12:37:34 GMT, Per Minborg <pminb...@openjdk.org> wrote:

> > I assume the changes to switch this from wait/notify to CountDownLatch 
> > aren't needed. A carrier can't terminate with a mounted virtual thread. 
> > It's okay to change the test but I think the original issue is about Zero 
> > or running with -XX:-VMContinautions.
> 
> Yes. This just eliminates potential races, but is not strictly needed to 
> avoid the problem at hand.

Okay, but I don't think there is a race as the only scheduler point right now 
is the wait. Maybe the future we might have additional scheduling points that 
would impact this. So I think what you have is okay.

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

PR Comment: https://git.openjdk.org/jdk/pull/25177#issuecomment-2872422477

Reply via email to