Mark shared global vals to fix K/N worker thread crash
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
package kotlin.collections
|
package kotlin.collections
|
||||||
|
|
||||||
|
import kotlin.native.concurrent.SharedImmutable
|
||||||
|
|
||||||
|
@SharedImmutable
|
||||||
private val emptyElementData = emptyArray<Any?>()
|
private val emptyElementData = emptyArray<Any?>()
|
||||||
private const val maxArraySize = Int.MAX_VALUE - 8
|
private const val maxArraySize = Int.MAX_VALUE - 8
|
||||||
private const val defaultMinCapacity = 10
|
private const val defaultMinCapacity = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user