Skip to content

Commit

Permalink
fix: add jdk options for java 21 virtual threads tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Jan 17, 2025
1 parent f08114e commit c5c3053
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions project/JdkOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ object JdkOptions extends AutoPlugin {

lazy val versionSpecificJavaOptions =
if (isJdk17orHigher) {
// for virtual threads
"--add-opens=java.base/sun.misc=ALL-UNNAMED" ::
"--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED" ::
"--add-opens=java.base/java.lang=ALL-UNNAMED" ::
"--add-opens=java.base/java.util=ALL-UNNAMED" ::
// for aeron
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED" ::
// for LevelDB
Expand Down

0 comments on commit c5c3053

Please sign in to comment.