10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.lang.reflect.Executable;
25 import java.util.concurrent.Callable;
26
27 /**
28 * @test ConstantGettersTransitionsTest
29 * @library /testlibrary /../../test/lib /compiler/whitebox
30 * @build TransitionsTestExecutor ConstantGettersTransitionsTest
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
32 * @run main/othervm/timeout=240 -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
33 * -XX:+WhiteBoxAPI -XX:+TieredCompilation
34 * -XX:CompileCommand=compileonly,ConstantGettersTestCase$TrivialMethods::*
35 * TransitionsTestExecutor ConstantGettersTransitionsTest
36 * @summary Test the correctness of compilation level transitions for constant getters methods
37 */
38 public class ConstantGettersTransitionsTest extends LevelTransitionTest {
39 public static void main(String[] args) {
40 assert (!CompilerWhiteBoxTest.skipOnTieredCompilation(false));
41
42 // run test cases
43 for (TestCase testCase : ConstantGettersTestCase.values()) {
44 new ConstantGettersTransitionsTest(testCase).runTest();
45 }
46 }
47
48 @Override
49 protected boolean isTrivial() {
50 return true;
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.lang.reflect.Executable;
25 import java.util.concurrent.Callable;
26
27 /**
28 * @test ConstantGettersTransitionsTest
29 * @library /testlibrary /../../test/lib /compiler/whitebox
30 * @build com.oracle.java.testlibrary.* TransitionsTestExecutor ConstantGettersTransitionsTest
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
32 * @run main/othervm/timeout=240 -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
33 * -XX:+WhiteBoxAPI -XX:+TieredCompilation
34 * -XX:CompileCommand=compileonly,ConstantGettersTestCase$TrivialMethods::*
35 * TransitionsTestExecutor ConstantGettersTransitionsTest
36 * @summary Test the correctness of compilation level transitions for constant getters methods
37 */
38 public class ConstantGettersTransitionsTest extends LevelTransitionTest {
39 public static void main(String[] args) {
40 assert (!CompilerWhiteBoxTest.skipOnTieredCompilation(false));
41
42 // run test cases
43 for (TestCase testCase : ConstantGettersTestCase.values()) {
44 new ConstantGettersTransitionsTest(testCase).runTest();
45 }
46 }
47
48 @Override
49 protected boolean isTrivial() {
50 return true;
|