JMH 1.23

Aleksey Shipilev shade at redhat.com
Wed Jan 22 12:02:12 UTC 2020


Hi,

JMH 1.23 is released and available at Maven Central. This is a maintenance release.

Notable changes:

 *) 7902560: Race in indent generation code
   https://bugs.openjdk.java.net/browse/CODETOOLS-7902560

   When multiple JMH generators run in the same JVM, there is a race on a shared data structure that
might break the build. This is an unusual scenario for many build configs, but if you have one like
that, this would help.

 *) 7902573: perfasm* should understand Intel syntax address literals
  https://bugs.openjdk.java.net/browse/CODETOOLS-7902573

   Turns out, when using Windows xperfasm, there are no control-flow arrows rendered across the
generated assembly. This is because perfasm parser did not understand Intel syntax address literals,
and so could not figure out where jumps are going to. This is now fixed with the contribution of
Jorn Vernee.

 *) 7902576: Lazy query for current JVM args in Runner
   https://bugs.openjdk.java.net/browse/CODETOOLS-7902576

   Running JMH with non-default security policy may break, when infra tries to access something it
is prohibited to. The go-to way for doing these benchmarks is to install policy in the test itself
(see JMHSample_33_SecurityManager.java sample). However, JMH can be a little more lazy in accessing
protected stuff. The access to ManagementFactory can now be avoided by specifying the explicit JVM
arguments. This is the contribution of Dmitry Chuyko.

 *) Plus, a bunch of code cleanups that should be invisible to the JMH users.

Enjoy.

-- 
Thanks,
-Aleksey



More information about the jmh-dev mailing list