Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 71cb3477ca63e2fa0e98df75f9df7465ddb9d4d9
https://github.com/hibernate/hibernate-orm/commit/71cb3477ca63e2fa0e98df7...
Author: Clement Escoffier <clement(a)apache.org>
Date: 2023-08-02 (Wed, 02 Aug 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/id/enhanced/HiLoOptimizer.java
M
hibernate-core/src/main/java/org/hibernate/id/enhanced/LegacyHiLoAlgorithmOptimizer.java
M hibernate-core/src/main/java/org/hibernate/id/enhanced/PooledLoOptimizer.java
M hibernate-core/src/main/java/org/hibernate/id/enhanced/PooledOptimizer.java
Log Message:
-----------
HHH-17005 - Replace monitor with a Java lock to avoid pinning when using virtual
threads
This commit replaces a `synchronized` with a ReentrantLock in:
- PooledOptimizer
- PooledLoOptimizer
- LegacyHiLoAlgorithmOptimizer
- HiLoOptimizer
The other implementations do not use a monitor lock.