RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]
    Patricio Chilano Mateo 
    pchilanomate at openjdk.org
       
    Thu Oct 24 21:17:16 UTC 2024
    
    
  
On Thu, 24 Oct 2024 02:55:18 GMT, David Holmes <dholmes at 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
    
    
More information about the graal-dev
mailing list