detecting jit compilation

Kirk Pepperdine kirk at kodewerk.com
Tue Sep 2 16:30:58 UTC 2014


Unfortunately no MXBean for this. You’ll have to use -XX:+PrintCompilation

— Kirk

On Sep 2, 2014, at 5:13 PM, Deneau, Tom <tom.deneau at amd.com> wrote:

> This may not be the right list for this question but...
> 
> Is there a way thru Management Beans that I can find out from the Java side whether a particular method has been JIT compiled?
> 
> -- Tom Deneau
> 
> -----Original Message-----
> From: Deneau, Tom 
> Sent: Friday, August 22, 2014 12:16 PM
> To: jmh-dev at openjdk.java.net
> Subject: specializing jvmArgs in a derived class
> 
> I have a base class with
>    @Benchmark 
>    public void myBenchmark()
> 
> and several derived classes that specialize that benchmark.
> In one of the derived classes, I would like to specify that when that derived class forks, certain jvmArgs get added to the jvm command line.  Is there a way to do this?
> 
> When I tried this in the derived class
> 
>    @Override
>    @Benchmark
>    @Fork(jvmArgs="...") 
>    public void myBenchmark()
> 
> I got this error which I don't really understand:
>    Internal error: multiple methods per @Group, but not all methods have @Group
> 
> If I remove the @Benchmark annotation from the derived myBenchmark, that error goes away but the jvmArgs seems to also get ignored.
> 
> -- Tom



More information about the jmh-dev mailing list