From d417c3457996815fcff470d837d051f67e60ddf9 Mon Sep 17 00:00:00 2001 From: Tobias Hartmann Date: Mon, 11 Apr 2022 05:29:46 +0000 Subject: [PATCH] 8284369: TestFailedAllocationBadGraph fails with -XX:TieredStopAtLevel < 4 Backport-of: 955d61df30099c01c6968fa5851643583f71250e --- .../compiler/allocation/TestFailedAllocationBadGraph.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/compiler/allocation/TestFailedAllocationBadGraph.java b/test/hotspot/jtreg/compiler/allocation/TestFailedAllocationBadGraph.java index bd720a9b4f1..9d5c2a193b7 100644 --- a/test/hotspot/jtreg/compiler/allocation/TestFailedAllocationBadGraph.java +++ b/test/hotspot/jtreg/compiler/allocation/TestFailedAllocationBadGraph.java @@ -25,10 +25,11 @@ * @test * bug 8279219 * @summary C2 crash when allocating array of size too large + * @requires vm.compiler2.enabled * @library /test/lib / * @build sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox - * @run main/othervm -ea -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-BackgroundCompilation TestFailedAllocationBadGraph + * @run main/othervm -ea -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-BackgroundCompilation TestFailedAllocationBadGraph */ import sun.hotspot.WhiteBox;