test/compiler/testlibrary/CompilerUtils.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/compiler/testlibrary/CompilerUtils.java

test/compiler/testlibrary/CompilerUtils.java

Print this page
rev 10233 : 8148159: [TESTBUG] TestCompilerDirectivesCompatibility tests fails on non-tiered server VMs
Summary: Add whitebox for checking available compilers
Reviewed-by:

*** 28,37 **** --- 28,52 ---- import java.util.stream.IntStream; import sun.hotspot.WhiteBox; public class CompilerUtils { + /** {@code CompLevel::CompLevel_none} -- Interpreter */ + public static final int COMP_LEVEL_NONE = 0; + /** {@code CompLevel::CompLevel_any}, {@code CompLevel::CompLevel_all} */ + public static final int COMP_LEVEL_ANY = -1; + /** {@code CompLevel::CompLevel_simple} -- C1 */ + public static final int COMP_LEVEL_SIMPLE = 1; + /** {@code CompLevel::CompLevel_limited_profile} -- C1, invocation & backedge counters */ + public static final int COMP_LEVEL_LIMITED_PROFILE = 2; + /** {@code CompLevel::CompLevel_full_profile} -- C1, invocation & backedge counters + mdo */ + public static final int COMP_LEVEL_FULL_PROFILE = 3; + /** {@code CompLevel::CompLevel_full_optimization} -- C2 or Shark */ + public static final int COMP_LEVEL_FULL_OPTIMIZATION = 4; + /** Maximal value for CompLevel */ + public static final int COMP_LEVEL_MAX = COMP_LEVEL_FULL_OPTIMIZATION; + private CompilerUtils() { // to prevent from instantiation } /**
test/compiler/testlibrary/CompilerUtils.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File