google / caliper

Micro-benchmarking library for Java
Apache License 2.0
816 stars 109 forks source link

-XX:CICompilerCount=2 vmOption does not apply #400

Open YemingHuang opened 6 years ago

YemingHuang commented 6 years ago

It's a known bug that since one of the build from Java 8 Tiered Compiler is turned on by default. And running benchmark without @VmOptions({"-XX:-TieredCompilation"}) will cause below error:

[stderr] CICompilerCount of 1 is invalid; must be at least 2

Turning off TieredCompilation is not desirable in benchmark. I tried adding @VmOptions({":CICompilerCount=2"}). But error "CICompilerCount of 1" persists.

Please advise how do I work this around without having to reset tiered compilation?