git: openjdk/jcstress: 7903890: jcstress: Rewrite/amend Singleton and Lazy primitives samples

duke duke at openjdk.org
Tue Dec 3 10:21:02 UTC 2024


Changeset: 7b124f6c
Branch: master
Author:    Aleksey Shipilëv <shade at openjdk.org>
Committer: GitHub <noreply at github.com>
Date:      2024-12-03 11:19:56 +0000
URL:       https://git.openjdk.org/jcstress/commit/7b124f6cbb2e5fc32d9146be7066aaf8ebb2fa05

7903890: jcstress: Rewrite/amend Singleton and Lazy primitives samples


! jcstress-benchmarks/pom.xml
+ jcstress-benchmarks/src/main/java/org/openjdk/jcstress/LazyBench.java
+ jcstress-benchmarks/src/main/java/org/openjdk/jcstress/SingletonBench.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_01_BrokenFactory.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_02_BrokenNulls.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_03_Basic.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_04_BrokenOneShot.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_05_WrapperOneShot.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/Lazy_06_FencedOneShot.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/performance.md
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/shared/Holder.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/shared/HolderFactory.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/shared/Lazy.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/shared/NullHolderFactory.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/lazy/shared/SupplierDupException.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_01_BrokenUnsynchronized.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_02_BrokenVolatile.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_03_InefficientCAS.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_04_InefficientSynchronized.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_05_DCL.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_06_AcquireReleaseDCL.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_07_BrokenNonVolatileDCL.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_08_FinalWrapper.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_09_Holder.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/Singleton_10_ThreadLocalWitness.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/performance.md
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/shared/Factory.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/shared/FinalSingleton.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/shared/MapResult.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/shared/NonFinalSingleton.java
+ jcstress-samples/src/main/java/org/openjdk/jcstress/samples/primitives/singletons/shared/Singleton.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/FinalWrapper.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/GradingSafe.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/GradingUnsafe.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/Holder.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/SafeDCL.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/SafeLocalDCL.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/Singleton.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/SingletonSafe.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/SingletonUnsafe.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/SynchronizedCL.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/UnsafeDCL.java
- tests-custom/src/main/java/org/openjdk/jcstress/tests/singletons/UnsafeLocalDCL.java



More information about the jcstress-dev mailing list