mdedetrich commented on PR #1092:
URL: https://github.com/apache/incubator-pekko/pull/1092#issuecomment-1925285219

   > @mdedetrich this change does not use any new classes - it uses existing 
classes. `synchronized` has not been improved in Java 21 but locks like 
ReentrantLock have been. ReentrantLock does not block the carrier thread and 
other virtual threads can use the carrier thread while the lock is waiting. 
`synchronized` does block the carrier thread and other virtual threads will not 
get a chance to use the carrier thread during the synchronized blocking is 
waiting (known as pinning).
   > 
   > See 
https://softwaremill.com/what-is-blocking-in-loom/#retrofitting-blocking
   
   I wasn't talking about this PR but the other one with VirtualThreadPool.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to