Generated compiler command file overrides user specified compiler command file

Nitsan Wakart nitsanw at azulsystems.com
Tue May 27 11:40:24 UTC 2014


Hi,
At present if a user sets the -XX:CompileCommandFile option it will be 
overriden by the generated hints file. A workaround is for the user to 
set the -XX:CompileCommand with all the commands they want but that is 
not very nice.
I've added support for merging the user provided CompileCommandFile and 
the JMH generated one.
Open issues:
1. This leaves the question of behavior for the default 
".hotspot_compiler" file open.
2. The merge expects 0 or one CompileCommandFile to be specified by the 
user. Only the first file is merged. Others are ignored.
3. When implementing I also realized that the current check for compiler 
hints compatibility is broken when a forked JVM is specified which is 
different than the runner JVM.
These concerns can be addressed separately.
Patch is attached.
Thanks,
Nitsan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jmh.patch
Type: text/x-patch
Size: 8154 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jmh-dev/attachments/20140527/1943e688/jmh.patch>


More information about the jmh-dev mailing list