[K/N] Remove FixmeConcurrency annotation
This commit is contained in:
committed by
Space Team
parent
0ef31501b1
commit
9864402cf8
@@ -6,7 +6,6 @@
|
|||||||
package kotlin
|
package kotlin
|
||||||
|
|
||||||
import kotlin.native.concurrent.*
|
import kotlin.native.concurrent.*
|
||||||
import kotlin.native.internal.FixmeConcurrency
|
|
||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
import kotlin.native.isExperimentalMM
|
import kotlin.native.isExperimentalMM
|
||||||
|
|
||||||
@@ -37,7 +36,6 @@ public actual fun <T> lazy(initializer: () -> T): Lazy<T> =
|
|||||||
* to synchronize on. Do not synchronize from external code on the returned instance as it may cause accidental deadlock.
|
* to synchronize on. Do not synchronize from external code on the returned instance as it may cause accidental deadlock.
|
||||||
* Also this behavior can be changed in the future.
|
* Also this behavior can be changed in the future.
|
||||||
*/
|
*/
|
||||||
@FixmeConcurrency
|
|
||||||
@OptIn(kotlin.ExperimentalStdlibApi::class, FreezingIsDeprecated::class)
|
@OptIn(kotlin.ExperimentalStdlibApi::class, FreezingIsDeprecated::class)
|
||||||
public actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T> =
|
public actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): Lazy<T> =
|
||||||
when (mode) {
|
when (mode) {
|
||||||
@@ -57,6 +55,5 @@ public actual fun <T> lazy(mode: LazyThreadSafetyMode, initializer: () -> T): La
|
|||||||
* in this case do not synchronize from external code on the returned instance as it may cause accidental deadlock.
|
* in this case do not synchronize from external code on the returned instance as it may cause accidental deadlock.
|
||||||
* Also this behavior can be changed in the future.
|
* Also this behavior can be changed in the future.
|
||||||
*/
|
*/
|
||||||
@FixmeConcurrency
|
|
||||||
@Suppress("UNUSED_PARAMETER")
|
@Suppress("UNUSED_PARAMETER")
|
||||||
public actual fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T> = throw UnsupportedOperationException()
|
public actual fun <T> lazy(lock: Any?, initializer: () -> T): Lazy<T> = throw UnsupportedOperationException()
|
||||||
@@ -81,13 +81,6 @@ internal annotation class ExportTypeInfo(val name: String)
|
|||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
internal annotation class VolatileLambda
|
internal annotation class VolatileLambda
|
||||||
|
|
||||||
/**
|
|
||||||
* Need to be fixed because of concurrency.
|
|
||||||
*/
|
|
||||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
|
|
||||||
@Retention(AnnotationRetention.SOURCE)
|
|
||||||
internal annotation class FixmeConcurrency
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Escape analysis annotations.
|
* Escape analysis annotations.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,9 +6,7 @@
|
|||||||
package kotlin.sequences
|
package kotlin.sequences
|
||||||
|
|
||||||
import kotlin.comparisons.*
|
import kotlin.comparisons.*
|
||||||
import kotlin.native.internal.FixmeConcurrency
|
|
||||||
|
|
||||||
@FixmeConcurrency
|
|
||||||
internal actual class ConstrainedOnceSequence<T> actual constructor(sequence: Sequence<T>) : Sequence<T> {
|
internal actual class ConstrainedOnceSequence<T> actual constructor(sequence: Sequence<T>) : Sequence<T> {
|
||||||
// TODO: not MT friendly.
|
// TODO: not MT friendly.
|
||||||
private var sequenceRef : Sequence<T>? = sequence
|
private var sequenceRef : Sequence<T>? = sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user