JVM_IR: protect LookupTracker use by a lock
This commit is contained in:
@@ -69,13 +69,15 @@ interface SourceCompilerForInline {
|
|||||||
|
|
||||||
fun GenerationState.trackLookup(container: FqName, functionName: String, location: LocationInfo) {
|
fun GenerationState.trackLookup(container: FqName, functionName: String, location: LocationInfo) {
|
||||||
val lookupTracker = configuration.get(CommonConfigurationKeys.LOOKUP_TRACKER) ?: return
|
val lookupTracker = configuration.get(CommonConfigurationKeys.LOOKUP_TRACKER) ?: return
|
||||||
lookupTracker.record(
|
synchronized(lookupTracker) {
|
||||||
location.filePath,
|
lookupTracker.record(
|
||||||
if (lookupTracker.requiresPosition) location.position else Position.NO_POSITION,
|
location.filePath,
|
||||||
container.asString(),
|
if (lookupTracker.requiresPosition) location.position else Position.NO_POSITION,
|
||||||
ScopeKind.CLASSIFIER,
|
container.asString(),
|
||||||
functionName
|
ScopeKind.CLASSIFIER,
|
||||||
)
|
functionName
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun loadCompiledInlineFunction(
|
fun loadCompiledInlineFunction(
|
||||||
|
|||||||
Reference in New Issue
Block a user