Revert strong references for compiler only

#KT-32521 Fixed
This commit is contained in:
Alexander Podkhalyuzin
2019-07-10 16:22:19 +03:00
committed by Alexey Tsvetkov
parent f3112f752d
commit 66fdc148be
@@ -21,7 +21,9 @@ import java.lang.reflect.*
import java.util.*
private object ClassTraversalCache {
private val cache = ContainerUtil.newConcurrentMap<Class<*>, ClassInfo>()
private val cache =
if (System.getProperty("idea.system.path") != null) ContainerUtil.newConcurrentMap<Class<*>, ClassInfo>()
else ContainerUtil.createConcurrentWeakKeySoftValueMap<Class<*>, ClassInfo>()
fun getClassInfo(c: Class<*>): ClassInfo {
val classInfo = cache.get(c)