Skip to content

Commit 1fc8c37

Browse files
authored
Add java.base/sun.security.action required for Lincheck to run on Java 17 (#3908)
1 parent 7659d65 commit 1fc8c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kotlinx-coroutines-core/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ task jvmLincheckTestAdditional(type: Test, dependsOn: compileTestKotlinJvm) {
323323
static void configureJvmForLincheck(task, additional = false) {
324324
task.minHeapSize = '1g'
325325
task.maxHeapSize = '4g' // we may need more space for building an interleaving tree in the model checking mode
326+
// https://github.com/JetBrains/lincheck#java-9
326327
task.jvmArgs = ['--add-opens', 'java.base/jdk.internal.misc=ALL-UNNAMED', // required for transformation
328+
'--add-exports', 'java.base/sun.security.action=ALL-UNNAMED',
327329
'--add-exports', 'java.base/jdk.internal.util=ALL-UNNAMED'] // in the model checking mode
328330
// Adjust internal algorithmic parameters to increase the testing quality instead of performance.
329331
var segmentSize = additional ? '2' : '1'

0 commit comments

Comments
 (0)