From aaf24c897f661436b8cc2e85faca9ab944d4b8a7 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Thu, 25 Aug 2022 16:59:33 +0300 Subject: [PATCH] [K/N] Update ObjectTransfer.kt documentation for the new MM --- .../main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt index 9820f1d75e5..cdc77bfa12c 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/ObjectTransfer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license + * Copyright 2010-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ @@ -9,6 +9,9 @@ import kotlinx.cinterop.* import kotlin.native.internal.Frozen /** + * Note: modern Kotlin/Native memory manager allows to share objects between threads without additional ceremonies, + * so TransferMode has effect only in legacy memory manager. + * * ## Object Transfer Basics. * * Objects can be passed between threads in one of two possible modes.