On Thu, 24 Oct 2024 02:55:18 GMT, David Holmes <dhol...@openjdk.org> wrote:
>>> Also JavaThread::_lock_id in the VM means "the java.lang.Thread thread-id >>> to use for locking" - correct? >>> >> Yes. > > 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21565#discussion_r1815697084