JVM_IR: No need to use ConcurrentHashMap in ClassCodegen
This commit is contained in:
committed by
TeamCityServer
parent
07eef9b751
commit
a5a79215d7
+1
-2
@@ -54,7 +54,6 @@ import org.jetbrains.kotlin.utils.addToStdlib.safeAs
|
||||
import org.jetbrains.org.objectweb.asm.*
|
||||
import org.jetbrains.org.objectweb.asm.commons.Method
|
||||
import java.io.File
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
interface MetadataSerializer {
|
||||
fun serialize(metadata: MetadataSource): Pair<MessageLite, JvmStringTable>?
|
||||
@@ -335,7 +334,7 @@ class ClassCodegen private constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private val generatedInlineMethods = ConcurrentHashMap<IrFunction, SMAPAndMethodNode>()
|
||||
private val generatedInlineMethods = mutableMapOf<IrFunction, SMAPAndMethodNode>()
|
||||
|
||||
fun generateMethodNode(method: IrFunction): SMAPAndMethodNode {
|
||||
if (!method.isInline && !method.isSuspendCapturingCrossinline()) {
|
||||
|
||||
Reference in New Issue
Block a user