Downloading the source and compiling JHM

Similar to all other OpenJDK tools and projects, there is an option to download the source of the JHM and build it yourself. This might be required if a framework requires customization and an extension fix. Luckily the process is very easy and straightforward.

Getting ready

This recipe requires a machine with an Internet connection that is capable of running Mercurial and Maven. Basically, the requirements are the same as that for compiling and running jcstress (see the Building and running jcstress recipe).

How to do it…

The following steps will lead you through the process of downloading the source code and building JHM:

  1. To start, let's run the following command to download the source files:
    hg clone http://hg.openjdk.java.net/code-tools/jmh/ ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.