Skip to content
Success

Changes

Summary

  1. Performance improvement: synchronize to java.util.concurrent.locks switch to improve performance with VirtualThreads (#2119) (commit: bee608e) (details)
Commit bee608efc9026c92fba8f0af5120e46844397856 by GitHub
Performance improvement: synchronize to java.util.concurrent.locks switch to improve performance with VirtualThreads (#2119)

This change improves EclipseLink performance with higher versions of the JDK (21 and above).
It's about replacement of synchronized keyword and wait(), notify() methods by objects from java.util.concurrent.locks.* package.
Additionally, there are some new performance tests to verify it and performance tests refresh.


(cherry picked from commit 1f0cf759092beb031ccc2e5a6950f239f15b5b55)

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
(commit: bee608e)
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountAbstract.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/MOXyBenchmarks.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/WriteLockManager.java (diff)
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountCacheTests.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/ConcurrencyManager.java (diff)
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountCacheTests.java
The file was removedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/Benchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountNoCacheTests.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadAbstract.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountNoCacheTests.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/JPAMetadataBenchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/model/basic/DetailEntity.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/CoreBenchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/core/ConcurrencyManagerBenchmark.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/model/basic/MasterEntity.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/identitymaps/CacheKey.java (diff)
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountAbstract.java
The file was modified performance/eclipselink.perf.test/antbuild.properties (diff)
The file was modified performance/eclipselink.perf.test/antbuild.xml (diff)
The file was modified performance/eclipselink.perf.test/resource/META-INF/persistence.xml (diff)
The file was modified performance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/JPABenchmarks.java (diff)
The file was modified antbuild.xml (diff)
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/ReadLockManager.java (diff)

Summary

  1. Performance improvement: synchronize to java.util.concurrent.locks switch to improve performance with VirtualThreads (#2119) (commit: bee608e) (details)
Commit bee608efc9026c92fba8f0af5120e46844397856 by GitHub
Performance improvement: synchronize to java.util.concurrent.locks switch to improve performance with VirtualThreads (#2119)

This change improves EclipseLink performance with higher versions of the JDK (21 and above).
It's about replacement of synchronized keyword and wait(), notify() methods by objects from java.util.concurrent.locks.* package.
Additionally, there are some new performance tests to verify it and performance tests refresh.


(cherry picked from commit 1f0cf759092beb031ccc2e5a6950f239f15b5b55)

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
(commit: bee608e)
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/MOXyBenchmarks.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/identitymaps/CacheKey.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/CoreBenchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountNoCacheTests.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/ConcurrencyManager.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/ReadLockManager.java
The file was modified performance/eclipselink.perf.test/antbuild.xml
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/JPAMetadataBenchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/model/basic/DetailEntity.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadAbstract.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountAbstract.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/model/basic/MasterEntity.java
The file was modified antbuild.xml
The file was modified performance/eclipselink.perf.test/antbuild.properties
The file was modified performance/eclipselink.perf.test/resource/META-INF/persistence.xml
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadLargeAmmountCacheTests.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountCacheTests.java
The file was modified foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/helper/WriteLockManager.java
The file was removedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/Benchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountNoCacheTests.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/jpa/tests/basic/JPAReadSmallAmmountAbstract.java
The file was modified performance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/JPABenchmarks.java
The file was addedperformance/eclipselink.perf.test/src/org/eclipse/persistence/testing/perf/core/ConcurrencyManagerBenchmark.java