Synchronize access to AccessTransformSet$Class#getOrCreateClass
This commit is contained in:
parent
3695c2ebaf
commit
d7e97c0ae1
1 changed files with 2 additions and 1 deletions
|
@ -170,8 +170,9 @@ class AccessTransformerVisitor(
|
|||
super.visitInnerClass(name, outerName, innerName, completedClassAt(name).get().apply(access))
|
||||
}
|
||||
|
||||
private fun completedClassAt(className: String): AccessTransformSet.Class =
|
||||
private fun completedClassAt(className: String): AccessTransformSet.Class = synchronized(at) {
|
||||
at.getOrCreateClass(className).apply { complete(inheritanceProvider) }
|
||||
}
|
||||
}
|
||||
|
||||
private const val RESET_ACCESS: Int = (Opcodes.ACC_PUBLIC or Opcodes.ACC_PRIVATE or Opcodes.ACC_PROTECTED).inv()
|
||||
|
|
Loading…
Reference in a new issue