Fix potential deadlock on lazy vs storage manager
This commit is contained in:
+3
-1
@@ -30,7 +30,9 @@ class LazyJavaPackageFragment(
|
||||
private val c: LazyJavaResolverContext,
|
||||
private val jPackage: JavaPackage
|
||||
) : PackageFragmentDescriptorImpl(c.module, jPackage.getFqName()) {
|
||||
private val scope by lazy { LazyJavaPackageScope(c, jPackage, this) }
|
||||
private val scope by c.storageManager.createLazyValue {
|
||||
LazyJavaPackageScope(c, jPackage, this)
|
||||
}
|
||||
|
||||
private val topLevelClasses = c.storageManager.createMemoizedFunctionWithNullableValues {
|
||||
javaClass: JavaClass ->
|
||||
|
||||
Reference in New Issue
Block a user