Auto-conversion of synchronized for loom.

Shailesh Vinayaka shailesh.vinayaka at oracle.com
Tue Aug 29 21:32:40 UTC 2023


Loom folks,

We have been tasked to prepare our framework for loom and it seems the first order of business is to move all synchronized blocks to use reentrant locks. For us it’d be a relatively huge project and before we embark, it’ll help to get clarification on these questions:

1. Is there a blocking reason why jdk did not convert the synchronized blocks to closures implementing reentrant lock/unlock via some compiler or opt-in flag?
2. Is there any known audit-tool/compiler tool available that does some level of auto-conversion?

Thank you for your help and please reply directly as I am not a member of the mailing list.
Shailesh.




More information about the loom-dev mailing list