Explorar el Código

Use RUNTIME_JAVA_HOME for micro benchmarks (#34353)

We don't honour RUNTIME_JAVA_HOME for running the benchmarks. It's useful to run some of the
benchmarks against older JDKs, though.
Yannick Welsch hace 7 años
padre
commit
9e522d5d97
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      benchmarks/build.gradle

+ 2 - 0
benchmarks/build.gradle

@@ -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