Skip to content

Commit 8671bce

Browse files
authored
Get rid of native-mt leftovers (Kotlin#4013)
Notably, an artificial entry point Fixes Kotlin#4009
1 parent d562f26 commit 8671bce

File tree

6 files changed

+0
-42
lines changed

6 files changed

+0
-42
lines changed

kotlinx-coroutines-core/build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ kotlin {
108108
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests.class).configureEach {
109109
binaries.getTest("DEBUG").with {
110110
optimized = true
111-
// Test for memory leaks using a special entry point that does not exit but returns from main
112-
freeCompilerArgs += ["-e", "kotlinx.coroutines.mainNoExit"]
113111
}
114112

115113
binaries.test("workerTest", [DEBUG]) {

kotlinx-coroutines-core/native/src/WorkerMain.native.kt

-8
This file was deleted.

kotlinx-coroutines-core/nativeDarwin/src/WorkerMain.kt

-14
This file was deleted.

kotlinx-coroutines-core/nativeDarwin/test/Launcher.kt

-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,3 @@ fun mainBackground(args: Array<String>) {
2020
error("CFRunLoopRun should never return")
2121
}
2222

23-
// This is a separate entry point for tests with leak checker
24-
fun mainNoExit(args: Array<String>) {
25-
workerMain { // autoreleasepool to make sure interop objects are properly freed
26-
testLauncherEntryPoint(args)
27-
}
28-
}

kotlinx-coroutines-core/nativeOther/src/WorkerMain.kt

-7
This file was deleted.

kotlinx-coroutines-core/nativeOther/test/Launcher.kt

-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,3 @@ fun mainBackground(args: Array<String>) {
1616
exitProcess(result)
1717
}.result // block main thread
1818
}
19-
20-
// This is a separate entry point for tests with leak checker
21-
fun mainNoExit(args: Array<String>) {
22-
testLauncherEntryPoint(args)
23-
}

0 commit comments

Comments
 (0)