jvmArgsAppend/jvmArgsPrepend in @Fork

Bernhard Urban lewurm at gmail.com
Wed Feb 19 01:32:25 PST 2014


Hi,

the jvmArgsAppend/jvmArgsPrepend option for @Fork works a bit unexpected.
 When I execute:

    @GenerateMicroBenchmark
    @Fork(jvmArgsAppend = "-XX:-UseCompressedOops")
    public void baseline() {
    }

I get:
$ java -jar target/microbenchmarks.jar ".*baseline.*" -i 1 -wi 0 -f 1
...
# VM options: -XX:-UseCompressedOops
...

Good. But if I add --jvmArgs to the command line:
$ java -jar target/microbenchmarks.jar ".*baseline.*" -i 1 -wi 0 -f 1
--jvmArgs "-d64"
...
# VM options: -d64
...

the "jvmArgsAppend" value is ignored.  Same thing for "jvmArgsPrepend".  Is
that the intended behavior?



Thanks,
Bernhard


More information about the jmh-dev mailing list