From 1f3d0941045190726417be7f22092236b3397098 Mon Sep 17 00:00:00 2001 From: Vsevolod Tolstopyatov Date: Fri, 6 Oct 2023 11:46:33 +0200 Subject: [PATCH] Add java.base/sun.security.action required for Lincheck to run on Java 17 --- kotlinx-coroutines-core/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kotlinx-coroutines-core/build.gradle b/kotlinx-coroutines-core/build.gradle index b21f1cbfd5..86350ce546 100644 --- a/kotlinx-coroutines-core/build.gradle +++ b/kotlinx-coroutines-core/build.gradle @@ -323,7 +323,9 @@ task jvmLincheckTestAdditional(type: Test, dependsOn: compileTestKotlinJvm) { static void configureJvmForLincheck(task, additional = false) { task.minHeapSize = '1g' task.maxHeapSize = '4g' // we may need more space for building an interleaving tree in the model checking mode + // https://github.com/JetBrains/lincheck#java-9 task.jvmArgs = ['--add-opens', 'java.base/jdk.internal.misc=ALL-UNNAMED', // required for transformation + '--add-exports', 'java.base/sun.security.action=ALL-UNNAMED', '--add-exports', 'java.base/jdk.internal.util=ALL-UNNAMED'] // in the model checking mode // Adjust internal algorithmic parameters to increase the testing quality instead of performance. var segmentSize = additional ? '2' : '1'