org.openjdk.jmh.annotations

Annotation Type CompilerControl



  • @Target(value={METHOD,CONSTRUCTOR,TYPE})@Retention(value=RUNTIME)public @interface CompilerControl

    Compiler control annotation may be used to affect the compilation of particular methods in the benchmarks.

    JMH interfaces with the JVM by the means of CompilerCommand interface. These annotations only work with forking enabled. Non-forked runs will not be able to pass the hints to the compiler. Also, these control annotations might get freely ignored by the compiler, reduced to no-ops, or otherwise invalidated. Be cautious, and check the compiler logs and/or the generated code to see if the effect is there.

    This annotation may be put at a method to have effect on that method only, or at the enclosing class instance to have the effect over all methods in the class. Remarkably, this annotation works on any class/method, even those not marked by other JMH annotations.

    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired Element and Description
      CompilerControl.Modevalue
      The compilation mode.

Copyright © 2012-2015 Oracle. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14