From 178cef563181e61bf30b996808ade3800734317c Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Thu, 10 Sep 2020 15:53:29 +0300 Subject: [PATCH] [FIR] Don't create synchronized lazy for constraint system in candidate --- .../src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt index b9ef206b0d4..02e5f8b0b36 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt @@ -85,7 +85,7 @@ class Candidate( ) { var systemInitialized: Boolean = false - val system: NewConstraintSystemImpl by lazy { + val system: NewConstraintSystemImpl by lazy(LazyThreadSafetyMode.NONE) { val system = constraintSystemFactory.createConstraintSystem() system.addOtherSystem(baseSystem) systemInitialized = true