[K/N] Move kotlin.native.internal.Debugging into kotlin.native.runtime

As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-03-30 23:11:18 +03:00
parent f90b846f86
commit bb8498b0c5
15 changed files with 89 additions and 29 deletions
@@ -1,3 +1,5 @@
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class)
import objclib.*
import kotlin.native.concurrent.*
import kotlinx.cinterop.*
@@ -19,6 +21,6 @@ fun main() {
if (Platform.memoryModel == MemoryModel.EXPERIMENTAL) {
// Experimental MM by default doesn't run GC neither on worker termination nor on program exit.
// Enforce GC on program exit:
kotlin.native.internal.Debugging.forceCheckedShutdown = true
kotlin.native.runtime.Debugging.forceCheckedShutdown = true
}
}
@@ -11,7 +11,7 @@ import kotlin.test.*
fun main(args: Array<String>) {
// Test relies on full deinitialization at shutdown.
kotlin.native.internal.Debugging.forceCheckedShutdown = true
kotlin.native.runtime.Debugging.forceCheckedShutdown = true
autoreleasepool {
run()
}
@@ -11,7 +11,7 @@ import kotlin.test.*
fun main(args: Array<String>) {
// Test relies on full deinitialization at shutdown.
kotlin.native.internal.Debugging.forceCheckedShutdown = true
kotlin.native.runtime.Debugging.forceCheckedShutdown = true
autoreleasepool {
run()
}