8027124: [TESTBUG] NonTieredLevelsTest: java.lang.RuntimeException: private TestCase$Helper(java.lang.Object) must be osr_compiled
Reviewed-by: kvn, roland
This commit is contained in:
parent
4f2175f088
commit
8439d7fa51
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -70,6 +70,9 @@ public class NonTieredLevelsTest extends CompLevelsTest {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void test() throws Exception {
|
protected void test() throws Exception {
|
||||||
|
if (skipXcompOSR()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
checkNotCompiled();
|
checkNotCompiled();
|
||||||
compile();
|
compile();
|
||||||
checkCompiled();
|
checkCompiled();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,6 +51,9 @@ public class TieredLevelsTest extends CompLevelsTest {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void test() throws Exception {
|
protected void test() throws Exception {
|
||||||
|
if (skipXcompOSR()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
checkNotCompiled();
|
checkNotCompiled();
|
||||||
compile();
|
compile();
|
||||||
checkCompiled();
|
checkCompiled();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -403,6 +403,20 @@ public abstract class CompilerWhiteBoxTest {
|
|||||||
/** flag for OSR test case */
|
/** flag for OSR test case */
|
||||||
boolean isOsr();
|
boolean isOsr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@code true} if the current test case is OSR and the mode is
|
||||||
|
* Xcomp, otherwise {@code false}
|
||||||
|
*/
|
||||||
|
protected boolean skipXcompOSR() {
|
||||||
|
boolean result = testCase.isOsr()
|
||||||
|
&& CompilerWhiteBoxTest.MODE.startsWith("compiled ");
|
||||||
|
if (result && IS_VERBOSE) {
|
||||||
|
System.err.printf("Warning: %s is not applicable in %s%n",
|
||||||
|
testCase.name(), CompilerWhiteBoxTest.MODE);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase {
|
enum SimpleTestCase implements CompilerWhiteBoxTest.TestCase {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,11 +51,8 @@ public class DeoptimizeAllTest extends CompilerWhiteBoxTest {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void test() throws Exception {
|
protected void test() throws Exception {
|
||||||
if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
|
if (skipXcompOSR()) {
|
||||||
"compiled ")) {
|
return;
|
||||||
System.err.printf("Warning: %s is not applicable in %s%n",
|
|
||||||
testCase.name(), CompilerWhiteBoxTest.MODE);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
compile();
|
compile();
|
||||||
checkCompiled();
|
checkCompiled();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -51,11 +51,8 @@ public class DeoptimizeMethodTest extends CompilerWhiteBoxTest {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void test() throws Exception {
|
protected void test() throws Exception {
|
||||||
if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
|
if (skipXcompOSR()) {
|
||||||
"compiled ")) {
|
return;
|
||||||
System.err.printf("Warning: %s is not applicable in %s%n",
|
|
||||||
testCase.name(), CompilerWhiteBoxTest.MODE);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
compile();
|
compile();
|
||||||
checkCompiled();
|
checkCompiled();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -77,10 +77,7 @@ public class IsMethodCompilableTest extends CompilerWhiteBoxTest {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
|
if (skipXcompOSR()) {
|
||||||
"compiled ")) {
|
|
||||||
System.err.printf("Warning: %s is not applicable in %s%n",
|
|
||||||
testCase.name(), CompilerWhiteBoxTest.MODE);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isCompilable(COMP_LEVEL_FULL_OPTIMIZATION)) {
|
if (!isCompilable(COMP_LEVEL_FULL_OPTIMIZATION)) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -53,11 +53,8 @@ public class MakeMethodNotCompilableTest extends CompilerWhiteBoxTest {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void test() throws Exception {
|
protected void test() throws Exception {
|
||||||
if (testCase.isOsr() && CompilerWhiteBoxTest.MODE.startsWith(
|
if (skipXcompOSR()) {
|
||||||
"compiled ")) {
|
return;
|
||||||
System.err.printf("Warning: %s is not applicable in %s%n",
|
|
||||||
testCase.name(), CompilerWhiteBoxTest.MODE);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
checkNotCompiled();
|
checkNotCompiled();
|
||||||
if (!isCompilable()) {
|
if (!isCompilable()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user