Synchronized methods and virtual threads

Alex filia.aleks at gmail.com
Sat Jun 1 16:56:39 UTC 2024


Hi everyone,
I have one question about the synchronized methods and virtual threads.
So in Java 23 the issue with pinned threads for synchronized methods was
fixed.

Before this fix many projects did fixes and replaced synchronized with
Lock. What is the latest recommendation? Keep replacing synchronized with
Lock or wait for Java 23 and use synchronized methods?

Thanks,

Alex Filichkin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240601/193c2f03/attachment.htm>


More information about the loom-dev mailing list