jmh under Java 8

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Apr 29 02:14:40 PDT 2013


On 04/29/2013 01:08 PM, Richard Warburton wrote:
> Which looks like you've got a dependency on the jrockit flight
> recorder APIs.  I can't actually find these checked into the OpenJDK
> build.  Have I made a mistake here, or are they simply not open
> source?

Ugh. I don't think JFR APIs are available in OpenJDK, but recent Oracle
JDK build should be able to build JMH just fine. Let me figure this out.

> If they aren't open source is it even possible me to use jmh to
> benchmark the java 8 lambdas build?

Yes, it is totally possible to benchmark any OpenJDK-derived JDK with
JMH (in fact, we do *a lot* of benchmarking for JDK 8 with JMH).

The issue you are facing is purely the build issue, and will not affect
runtime (unless, of course, you will enable JFR profiler with "-prof
jfr"). Hence, at the moment you can build the JMH with Oracle-provided
public builds, while I figure out how to handle this properly on the
build side.

-Alekesy.



More information about the jmh-dev mailing list