JMH 1.24

Aleksey Shipilev shade at redhat.com
Wed Aug 5 09:14:56 UTC 2020


Hi,

JMH 1.24 is released and available at Maven Central. This is a feature and bugfixing release, and it
contains these changes:

 *) async-profiler [1] integration. Can be used with -prof async, pass -prof async:help to look for
the accepted options. Please report problems with it, if any. Thanks to Jason Zaugg for contribution!
  7902739: Add a profiler based on async-profiler
  7902741: Follow up async profiler bindings fixes
  7902744: Another async-profiler followup for thread filtering
  7902746: Further cleanups to AsyncProfiler

 *) perf c2c [2] integration. Can be used with -prof perfc2c, if available. Thanks to Carter Kozak
for contribution!
  7902740: Add profiler bindings for perfc2c

 *) Profiler initialization reworked a bit, which gives more verbose profiler failure messages, and
does not require super-user privileges on some code paths.
  7902448: JMH -lprof asks for sudo
  7902737: Improve error handling in profiler initialization

*) JMH benchmark compilation fixes: @Param values with odd characters in them broke benchmark
compilation, generic arguments in benchmark methods broke compilation too.
  7902716: JMH should armor @Param values in benchmark list
  7902629: JMH crashes when compiling @Benchmark with generic argument

*) JMH reliability fixes: padding guidance is updated to work properly with JDK 15 [2].
  7902620: JMH: Improve padding guidance

Enjoy!

-- 
Thanks,
-Aleksey

[1] https://github.com/jvm-profiling-tools/async-profiler
[2] https://man7.org/linux/man-pages/man1/perf-c2c.1.html
[3]
https://shipilev.net/jvm/objects-inside-out/#_observation_hierarchy_tower_padding_trick_collapse_in_jdk_15



More information about the jmh-dev mailing list