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.
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).
The following steps will lead you through the process of downloading the source code and building JHM:
To start, let's run the following command to download the source files:
hg clone http://hg.openjdk.java.net/code-tools/jmh/ jmh
This command will download the source files and put them into the
jmh
folder.The next step is to build the source code. The build requires Maven to be installed on the machine. Change the current folder to...