mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-19 23:05:28 +00:00
8239424: [TESTBUG] compiler/whitebox/OSRFailureLevel4Test.java failed when TieredCompilation is disabled
Skip test if TieredCompilation is not available. Reviewed-by: thartmann
This commit is contained in:
parent
eef02376bd
commit
305fe226dc
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -43,6 +43,7 @@ package compiler.whitebox;
|
||||
import sun.hotspot.WhiteBox;
|
||||
import java.lang.reflect.Executable;
|
||||
import java.lang.reflect.Method;
|
||||
import jtreg.SkippedException;
|
||||
|
||||
public class OSRFailureLevel4Test extends Thread {
|
||||
private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
|
||||
@ -50,6 +51,9 @@ public class OSRFailureLevel4Test extends Thread {
|
||||
private Method method;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
if (CompilerWhiteBoxTest.skipOnTieredCompilation(false)) {
|
||||
throw new SkippedException("Test isn't applicable for non-tiered mode");
|
||||
}
|
||||
OSRFailureLevel4Test test = new OSRFailureLevel4Test();
|
||||
test.test();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user