Thoughts on virtual thread pinning caused by classic synchronization

Thilo-Alexander Ginkel thilo at ginkel.com
Sun Aug 8 09:54:37 UTC 2021


Hello everyone,

while experimenting with Loom (build 17-loom+7-342) we noticed that there
are a couple of JDK classes (such as PushbackInputStream, file channels,
...) that rely on classic synchronization and thus cause virtual threads to
be pinned. Third-party libraries exhibit similar behavior.

Are you planning to eventually support classic "synchronized" with Loom or
do libraries (as well as the JDK) need to migrate to lock-based concurrency?

Thanks & kind regards,
Thilo


More information about the loom-dev mailing list