diff --git a/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java index f42cd9cb1d..25ef03db87 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java @@ -753,7 +753,7 @@ public abstract class AbstractCollectionPersister } // lazily initialize instance field via 'double-checked locking' - // see https://en.wikipedia.org/wiki/Double-checked_locking + // see https://en.wikipedia.org/wiki/Double-checked_locking on why 'volatile' and local copy is used protected CollectionLoader getStandardCollectionLoader() { CollectionLoader localCopy = standardCollectionLoader; if ( localCopy == null ) {