diff --git a/kotlinx-coroutines-core/native/src/internal/Concurrent.kt b/kotlinx-coroutines-core/native/src/internal/Concurrent.kt index 1db6c3bd86..f6e18dd5fc 100644 --- a/kotlinx-coroutines-core/native/src/internal/Concurrent.kt +++ b/kotlinx-coroutines-core/native/src/internal/Concurrent.kt @@ -32,6 +32,7 @@ internal open class SuppressSupportingThrowableImpl : Throwable() { } } -@SharedImmutable +// getter instead of a property due to the bug in the initialization dependencies tracking with '-Xir-property-lazy-initialization=disabled' that Ktor uses @OptIn(ExperimentalStdlibApi::class) -internal val multithreadingSupported: Boolean = kotlin.native.isExperimentalMM() +internal val multithreadingSupported: Boolean + get() = kotlin.native.isExperimentalMM()