Skip to content

Get rid of native-mt leftovers #4013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions kotlinx-coroutines-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ kotlin {
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithTests.class).configureEach {
binaries.getTest("DEBUG").with {
optimized = true
// Test for memory leaks using a special entry point that does not exit but returns from main
freeCompilerArgs += ["-e", "kotlinx.coroutines.mainNoExit"]
}

binaries.test("workerTest", [DEBUG]) {
Expand Down
8 changes: 0 additions & 8 deletions kotlinx-coroutines-core/native/src/WorkerMain.native.kt

This file was deleted.

14 changes: 0 additions & 14 deletions kotlinx-coroutines-core/nativeDarwin/src/WorkerMain.kt

This file was deleted.

6 changes: 0 additions & 6 deletions kotlinx-coroutines-core/nativeDarwin/test/Launcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@ fun mainBackground(args: Array<String>) {
error("CFRunLoopRun should never return")
}

// This is a separate entry point for tests with leak checker
fun mainNoExit(args: Array<String>) {
workerMain { // autoreleasepool to make sure interop objects are properly freed
testLauncherEntryPoint(args)
}
}
7 changes: 0 additions & 7 deletions kotlinx-coroutines-core/nativeOther/src/WorkerMain.kt

This file was deleted.

5 changes: 0 additions & 5 deletions kotlinx-coroutines-core/nativeOther/test/Launcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ fun mainBackground(args: Array<String>) {
exitProcess(result)
}.result // block main thread
}

// This is a separate entry point for tests with leak checker
fun mainNoExit(args: Array<String>) {
testLauncherEntryPoint(args)
}