Skip to content

Commit c5c3053

Browse files
committed
fix: add jdk options for java 21 virtual threads tests.
1 parent f08114e commit c5c3053

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

project/JdkOptions.scala

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ object JdkOptions extends AutoPlugin {
4949

5050
lazy val versionSpecificJavaOptions =
5151
if (isJdk17orHigher) {
52+
// for virtual threads
53+
"--add-opens=java.base/sun.misc=ALL-UNNAMED" ::
54+
"--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED" ::
55+
"--add-opens=java.base/java.lang=ALL-UNNAMED" ::
56+
"--add-opens=java.base/java.util=ALL-UNNAMED" ::
5257
// for aeron
5358
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED" ::
5459
// for LevelDB

0 commit comments

Comments
 (0)