How Loom friendly is the Java sync driver?

With Loom starting to be integrated in the JDK (preview in 19), I’m curious to know how compatible the Java sync driver is with Loom, major issues are JNI calls and (as of now) synchronized blocks (proper Locks objects are supported).

Is someone looking into this? This could be a really interesting alternative to the reactive driver.

1 Like

Yes, we’ve done some testing with both virtual threads and structured concurrency, and recently addressed https://jira.mongodb.org/browse/JAVA-4642. There are a few other known issues that we are tracking in scope of the https://jira.mongodb.org/browse/JAVA-4649 epic. If you happen to do any testing of your own, please report any issues that you find.

Regards,
Jeff

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.