RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning
David Holmes
dholmes at openjdk.org
Wed Nov 6 17:40:13 UTC 2024
On Thu, 24 Oct 2024 21:08:47 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> I guess I don't understand where this piece code fits in the overall transition of the virtual thread to being parked. I would have expected the LockStack to already have been moved by the time we switch identities to the carrier thread.
>
> We don't unmount the virtual thread here, we just temporarily change the thread identity. You could think of this method as switchIdentityToCarrierThread if that helps.
Sorry to belabour this but why are we temporarily changing the thread identity? What is the bigger operation that in underway here?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21565#discussion_r1815762233
More information about the serviceability-dev
mailing list