pjfanning commented on PR #1092: URL: https://github.com/apache/incubator-pekko/pull/1092#issuecomment-1925250689
@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. See https://softwaremill.com/what-is-blocking-in-loom/#retrofitting-blocking -- 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]
