--- old/test/compiler/rangechecks/TestRangeCheckSmearing.java 2016-07-08 19:59:56.976755738 +0300 +++ new/test/compiler/rangechecks/TestRangeCheckSmearing.java 2016-07-08 19:59:56.928755738 +0300 @@ -28,7 +28,6 @@ * @library /testlibrary /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @ignore 8157984 * @build TestRangeCheckSmearing * @run driver ClassFileInstaller sun.hotspot.WhiteBox * jdk.test.lib.Platform @@ -44,6 +43,7 @@ import sun.hotspot.code.NMethod; import jdk.test.lib.Platform; import compiler.whitebox.CompilerWhiteBoxTest; +import compiler.testlibrary.CompilerUtils; public class TestRangeCheckSmearing { private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox(); @@ -396,7 +396,7 @@ System.out.println("ArrayIndexOutOfBoundsException was not thrown in "+name); } - if (Platform.isServer()) { + if (CompilerUtils.getMaxCompilationLevel() == CompilerWhiteBoxTest.COMP_LEVEL_FULL_OPTIMIZATION) { if (exceptionRequired == WHITE_BOX.isMethodCompiled(m)) { System.out.println((exceptionRequired?"Didn't deoptimized":"deoptimized") + " in "+name); test_success = false;