test/compiler/whitebox/CompilerWhiteBoxTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8038240 Cdiff test/compiler/whitebox/CompilerWhiteBoxTest.java

test/compiler/whitebox/CompilerWhiteBoxTest.java

Print this page
rev 6136 : 8038240: new WB API to get nmethod
Reviewed-by: morris, kvn

*** 22,31 **** --- 22,32 ---- */ import com.sun.management.HotSpotDiagnosticMXBean; import com.sun.management.VMOption; import sun.hotspot.WhiteBox; + import sun.hotspot.code.NMethod; import sun.management.ManagementFactoryHelper; import java.lang.reflect.Constructor; import java.lang.reflect.Executable; import java.lang.reflect.Method;
*** 276,286 **** WHITE_BOX.deoptimizeMethod(method, false); } } protected final int getCompLevel() { ! return WHITE_BOX.getMethodCompilationLevel(method, testCase.isOsr()); } protected final boolean isCompilable() { return WHITE_BOX.isMethodCompilable(method, COMP_LEVEL_ANY, testCase.isOsr()); --- 277,288 ---- WHITE_BOX.deoptimizeMethod(method, false); } } protected final int getCompLevel() { ! NMethod nm = NMethod.get(method, testCase.isOsr()); ! return nm == null ? COMP_LEVEL_NONE : nm.comp_level; } protected final boolean isCompilable() { return WHITE_BOX.isMethodCompilable(method, COMP_LEVEL_ANY, testCase.isOsr());
test/compiler/whitebox/CompilerWhiteBoxTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File