test/compiler/whitebox/CompilerWhiteBoxTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/compiler/whitebox/CompilerWhiteBoxTest.java	Tue Mar 25 12:59:35 2014
--- new/test/compiler/whitebox/CompilerWhiteBoxTest.java	Tue Mar 25 12:59:35 2014

*** 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 **** --- 277,288 ---- WHITE_BOX.deoptimizeMethod(method, false); } } protected final int getCompLevel() { ! return WHITE_BOX.getMethodCompilationLevel(method, testCase.isOsr()); ! 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