clement escoffier (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMmVhMGUzN2M2...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-17005?atlOrigin=eyJpIjoiMmVhMG...
) HHH-17005 (
https://hibernate.atlassian.net/browse/HHH-17005?atlOrigin=eyJpIjoiMmVhMG...
) Remove pinning in PooledLoOptimizer (
https://hibernate.atlassian.net/browse/HHH-17005?atlOrigin=eyJpIjoiMmVhMG...
)
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created:
27/Jul/2023 00:13 AM Priority: Major Reporter: clement escoffier (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When using Hibernate ORM with virtual threads, writes are pinning the carrier thread
because of the synchronization happening in PooledLoOptimizer. This happens because some
I/O are performed while holding this monitor lock.
We could remove the “synchronized” method to work around that limitation and use a Java
lock instead. Java locks are virtual thread friendly. They do not pin the carrier thread
when an I/O is executed when holding the lock.
(
https://hibernate.atlassian.net/browse/HHH-17005#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17005#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100233- sha1:63d45e1 )