Skip to content

Commit

Permalink
Merge pull request #244 from renaissance-benchmarks/ff/jdk16-add-opens
Browse files Browse the repository at this point in the history
Add out of the box support for spark benchmarks on JDK16
  • Loading branch information
farquet authored Apr 29, 2021
2 parents 8e3f720 + 5bcdab8 commit fd65310
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ def addLink(scriptFile: File, linkFile: File): Unit = {
}

lazy val renaissance: Project = {
// required for out of the box JDK16+ support of als, chi-square, gauss-mix, log-regression, naive-bayes, movie-lens
// https://github.com/renaissance-benchmarks/renaissance/issues/241
val addOpensPackages = List(
"java.base/java.lang",
"java.base/java.lang.invoke",
"java.base/java.util",
"java.base/java.nio",
"java.base/sun.nio.ch"
)
val p = Project("renaissance", file("."))
.settings(
name := "renaissance",
Expand All @@ -177,7 +186,8 @@ lazy val renaissance: Project = {
// Consider Specification-Version to mark sets of active benchmarks
("Git-Head-Commit", git.gitHeadCommit.value.getOrElse("unknown")),
("Git-Head-Commit-Date", git.gitHeadCommitDate.value.getOrElse("unknown")),
("Git-Uncommitted-Changes", git.gitUncommittedChanges.value.toString)
("Git-Uncommitted-Changes", git.gitUncommittedChanges.value.toString),
("Add-Opens", addOpensPackages.mkString(" "))
)
),
// Configure fat JAR: specify its name, main(), do not run tests when
Expand Down

0 comments on commit fd65310

Please sign in to comment.