< prev index next >

test/hotspot/jtreg/compiler/whitebox/CompilerWhiteBoxTest.java

Print this page
rev 47446 : imported patch jdk10-hs-single.patch


  34 
  35 /**
  36  * Abstract class for WhiteBox testing of JIT.
  37  * Depends on jdk.test.lib.Platform from testlibrary.
  38  *
  39  * @author igor.ignatyev@oracle.com
  40  */
  41 public abstract class CompilerWhiteBoxTest {
  42     /** {@code CompLevel::CompLevel_none} -- Interpreter */
  43     public static final int COMP_LEVEL_NONE = 0;
  44     /** {@code CompLevel::CompLevel_any}, {@code CompLevel::CompLevel_all} */
  45     public static final int COMP_LEVEL_ANY = -2;
  46     /** {@code CompLevel::CompLevel_aot} -- AOT */
  47     public static final int COMP_LEVEL_AOT = -1;
  48     /** {@code CompLevel::CompLevel_simple} -- C1 */
  49     public static final int COMP_LEVEL_SIMPLE = 1;
  50     /** {@code CompLevel::CompLevel_limited_profile} -- C1, invocation &amp; backedge counters */
  51     public static final int COMP_LEVEL_LIMITED_PROFILE = 2;
  52     /** {@code CompLevel::CompLevel_full_profile} -- C1, invocation &amp; backedge counters + mdo */
  53     public static final int COMP_LEVEL_FULL_PROFILE = 3;
  54     /** {@code CompLevel::CompLevel_full_optimization} -- C2 or Shark */
  55     public static final int COMP_LEVEL_FULL_OPTIMIZATION = 4;
  56     /** Maximal value for CompLevel */
  57     public static final int COMP_LEVEL_MAX = COMP_LEVEL_FULL_OPTIMIZATION;
  58 
  59     /** Instance of WhiteBox */
  60     protected static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  61     /** Value of {@code -XX:CompileThreshold} */
  62     protected static final int COMPILE_THRESHOLD
  63             = Integer.parseInt(getVMOption("CompileThreshold", "10000"));
  64     /** Value of {@code -XX:BackgroundCompilation} */
  65     protected static final boolean BACKGROUND_COMPILATION
  66             = Boolean.valueOf(getVMOption("BackgroundCompilation", "true"));
  67     protected static final boolean USE_COUNTER_DECAY
  68             = Boolean.valueOf(getVMOption("UseCounterDecay", "true"));
  69     /** Value of {@code -XX:TieredCompilation} */
  70     protected static final boolean TIERED_COMPILATION
  71             = Boolean.valueOf(getVMOption("TieredCompilation", "false"));
  72     /** Value of {@code -XX:TieredStopAtLevel} */
  73     protected static final int TIERED_STOP_AT_LEVEL
  74             = Integer.parseInt(getVMOption("TieredStopAtLevel", "0"));




  34 
  35 /**
  36  * Abstract class for WhiteBox testing of JIT.
  37  * Depends on jdk.test.lib.Platform from testlibrary.
  38  *
  39  * @author igor.ignatyev@oracle.com
  40  */
  41 public abstract class CompilerWhiteBoxTest {
  42     /** {@code CompLevel::CompLevel_none} -- Interpreter */
  43     public static final int COMP_LEVEL_NONE = 0;
  44     /** {@code CompLevel::CompLevel_any}, {@code CompLevel::CompLevel_all} */
  45     public static final int COMP_LEVEL_ANY = -2;
  46     /** {@code CompLevel::CompLevel_aot} -- AOT */
  47     public static final int COMP_LEVEL_AOT = -1;
  48     /** {@code CompLevel::CompLevel_simple} -- C1 */
  49     public static final int COMP_LEVEL_SIMPLE = 1;
  50     /** {@code CompLevel::CompLevel_limited_profile} -- C1, invocation &amp; backedge counters */
  51     public static final int COMP_LEVEL_LIMITED_PROFILE = 2;
  52     /** {@code CompLevel::CompLevel_full_profile} -- C1, invocation &amp; backedge counters + mdo */
  53     public static final int COMP_LEVEL_FULL_PROFILE = 3;
  54     /** {@code CompLevel::CompLevel_full_optimization} -- C2 */
  55     public static final int COMP_LEVEL_FULL_OPTIMIZATION = 4;
  56     /** Maximal value for CompLevel */
  57     public static final int COMP_LEVEL_MAX = COMP_LEVEL_FULL_OPTIMIZATION;
  58 
  59     /** Instance of WhiteBox */
  60     protected static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  61     /** Value of {@code -XX:CompileThreshold} */
  62     protected static final int COMPILE_THRESHOLD
  63             = Integer.parseInt(getVMOption("CompileThreshold", "10000"));
  64     /** Value of {@code -XX:BackgroundCompilation} */
  65     protected static final boolean BACKGROUND_COMPILATION
  66             = Boolean.valueOf(getVMOption("BackgroundCompilation", "true"));
  67     protected static final boolean USE_COUNTER_DECAY
  68             = Boolean.valueOf(getVMOption("UseCounterDecay", "true"));
  69     /** Value of {@code -XX:TieredCompilation} */
  70     protected static final boolean TIERED_COMPILATION
  71             = Boolean.valueOf(getVMOption("TieredCompilation", "false"));
  72     /** Value of {@code -XX:TieredStopAtLevel} */
  73     protected static final int TIERED_STOP_AT_LEVEL
  74             = Integer.parseInt(getVMOption("TieredStopAtLevel", "0"));


< prev index next >