Revert strong references for compiler only
#KT-32521 Fixed
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user