diff --git a/jmh.gradle b/jmh.gradle index a4d794f1e41a..c5f55aa14451 100644 --- a/jmh.gradle +++ b/jmh.gradle @@ -62,11 +62,12 @@ configure(jmhProjects) { jmh { jmhVersion = '1.37' - failOnError = true + failOnError = project.findProperty('jmhFailOnError')?.toBoolean() ?: true forceGC = true includeTests = true humanOutputFile = file(jmhOutputPath) - jvmArgs = ['-Xmx32g'] + jvmArgs = ["-Xmx${project.findProperty('jmhHeapSize') ?: '32g'}", + '--add-opens=java.base/java.nio=ALL-UNNAMED'] resultsFile = file(jmhJsonOutputPath) resultFormat = 'JSON' includes = [jmhIncludeRegex]