Skip to content
Permalink
Browse files

8239424: [TESTBUG] compiler/whitebox/OSRFailureLevel4Test.java failed…

… when TieredCompilation is disabled

Skip test if TieredCompilation is not available.

Reviewed-by: thartmann
  • Loading branch information
theaoqi committed Feb 19, 2020
1 parent eef0237 commit 305fe226dcd7ddab5b6fca16f4392be4967d84f5
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/hotspot/jtreg/compiler/whitebox/OSRFailureLevel4Test.java
@@ -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,13 +43,17 @@
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();
private static final long BACKEDGE_THRESHOLD = 150000;
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();
}

0 comments on commit 305fe22

Please sign in to comment.