On Tue, 15 Sep 2026 14:44:08 GMT, Patricio Chilano Mateo 
<[email protected]> wrote:

> On mount, `vthread()` changes in `setCurrentThread`, right before calling 
> `enterSpecial` which mounts the continuation (sets `_cont_entry`). At unmount 
> we unmount the continuation first (unset `_cont_entry`) and then change 
> `vthread()` back in `setCurrentThread`.

Okay so we now report as mounted earlier, and keep reporting as mounted later. 
I don't think this will cause any issues given that when mounted we just 
"pretend" the platform thread is blocked waiting for the vthread (seems an odd 
thing to do but ...).

> We still have the issue where the information reported might not be 
> consistent, that’s why ideally this should use a handshake.

Wouldn't a `MountUnmountTransitionDisabler` be a simpler way to get stability 
here? Not that I think we really need it in this case.

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

PR Comment: https://git.openjdk.org/jdk/pull/32788#issuecomment-5691086124
PR Comment: https://git.openjdk.org/jdk/pull/32788#issuecomment-5691097460

Reply via email to