fixed concurrency problem uncovered during JMH-based throughput testing (Act 4 - which is really Act 2)
This commit is contained in:
parent
2b65c73fb7
commit
ecfb3da071
|
@ -188,11 +188,12 @@ public class ConcreteSqmSelectQueryPlan<R> implements SelectQueryPlan<R> {
|
||||||
synchronized ( this ) {
|
synchronized ( this ) {
|
||||||
localCopy = cacheableSqmInterpretation;
|
localCopy = cacheableSqmInterpretation;
|
||||||
if ( localCopy == null ) {
|
if ( localCopy == null ) {
|
||||||
cacheableSqmInterpretation = localCopy = buildCacheableSqmInterpretation(
|
localCopy = buildCacheableSqmInterpretation(
|
||||||
sqm,
|
sqm,
|
||||||
domainParameterXref,
|
domainParameterXref,
|
||||||
executionContext
|
executionContext
|
||||||
);
|
);
|
||||||
|
cacheableSqmInterpretation = localCopy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue