JMH 1.4

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Dec 19 10:03:35 UTC 2014


Hi,

JMH 1.4 is released and available at Maven Central (thanks to... hold
it... yes, that's Evgeny Mandrikov, as usual). This is a patch release,
but it has some intrusive bugfixes that change the internal API on at
least one occasion. Therefore, we are bumping the minor version. Please
test if 1.4 works good for you!

Summary of changes:

 * "±" sign was garbled on Windows. The fix required to reconsider what
we do with the PrintStreams, and notably it changed the argument type in
public ResultFormatFactory.getInstance method. Therefore, some code that
uses this JMH API may break and require a trivial fix in user code. Fix:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901217

 * JMH generates some code that uses raw types, leading to excess
compilation warnings in benchmarks. Staffan Friberg fixed that for us:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901219

 * Annotation processors now "accept" the latest() source code available
to javac. This should be a safe change for up to JDK 9, and we save a
few warning messages in the build:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901127

 * There is a validation.jar in jmh-core-benchmarks that is an
experimental workload to estimate basic things about the benchmarking
environment. We do not yet fully support it, but it needed some fixes to
run properly:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901218

 * Polished some tests.

Enjoy!

Thanks,
-Aleksey.



More information about the jmh-dev mailing list