Skip to content

Commit

Permalink
Use RUNTIME_JAVA_HOME for micro benchmarks (elastic#34353)
Browse files Browse the repository at this point in the history
We don't honour RUNTIME_JAVA_HOME for running the benchmarks. It's useful to run some of the
benchmarks against older JDKs, though.
  • Loading branch information
ywelsch committed Oct 8, 2018
1 parent 49cbcaf commit 9e522d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ compileJava.options.compilerArgs << "-Xlint:-cast,-deprecation,-rawtypes,-try,-u
// needs to be added separately otherwise Gradle will quote it and javac will fail
compileJava.options.compilerArgs.addAll(["-processor", "org.openjdk.jmh.generators.BenchmarkProcessor"])

run.executable = new File(project.runtimeJavaHome, 'bin/java')

// classes generated by JMH can use all sorts of forbidden APIs but we have no influence at all and cannot exclude these classes
forbiddenApisMain.enabled = false

Expand Down

0 comments on commit 9e522d5

Please sign in to comment.