Skip to content

Commit f75dd80

Browse files
committed
8266230: mark hotspot compiler/c2 tests which ignore VM flags
Reviewed-by: kvn
1 parent 9df6cc7 commit f75dd80

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

test/hotspot/jtreg/compiler/c2/TestBit.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -32,15 +32,16 @@
3232
* @summary C2 should convert ((var&16) == 16) to ((var&16) != 0) for power-of-two constants
3333
* @library /test/lib /
3434
*
35-
* @run driver compiler.c2.TestBit
36-
*
35+
* @requires vm.flagless
3736
* @requires os.arch=="aarch64" | os.arch=="amd64" | os.arch == "ppc64le"
3837
* @requires vm.debug == true & vm.compiler2.enabled
38+
*
39+
* @run driver compiler.c2.TestBit
3940
*/
4041
public class TestBit {
4142

4243
static void runTest(String testName) throws Exception {
43-
String className = "compiler.c2.TestBit";
44+
String className = TestBit.class.getName();
4445
String[] procArgs = {
4546
"-Xbatch",
4647
"-XX:-TieredCompilation",

test/hotspot/jtreg/compiler/c2/aarch64/TestSVEWithJNI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2020, Arm Limited. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -29,8 +29,9 @@
2929
* @requires os.arch == "aarch64" & vm.compiler2.enabled & os.family == "linux"
3030
* @summary Verify VM SVE checking behavior
3131
* @library /test/lib
32-
* @run main/othervm/native compiler.c2.aarch64.TestSVEWithJNI
32+
* @requires vm.flagless
3333
*
34+
* @run main/othervm/native compiler.c2.aarch64.TestSVEWithJNI
3435
*/
3536

3637
package compiler.c2.aarch64;

test/hotspot/jtreg/compiler/c2/aarch64/TestVolatilesG1.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*
2929
* @modules java.base/jdk.internal.misc
3030
*
31+
* @requires vm.flagless
3132
* @requires os.arch=="aarch64" & vm.debug == true &
3233
* vm.flavor == "server" & !vm.graal.enabled &
3334
* vm.gc.G1

test/hotspot/jtreg/compiler/c2/aarch64/TestVolatilesParallel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*
2929
* @modules java.base/jdk.internal.misc
3030
*
31+
* @requires vm.flagless
3132
* @requires os.arch=="aarch64" & vm.debug == true &
3233
* vm.flavor == "server" & !vm.graal.enabled &
3334
* vm.gc.Parallel

test/hotspot/jtreg/compiler/c2/aarch64/TestVolatilesSerial.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*
2929
* @modules java.base/jdk.internal.misc
3030
*
31+
* @requires vm.flagless
3132
* @requires os.arch=="aarch64" & vm.debug == true &
3233
* vm.flavor == "server" & !vm.graal.enabled &
3334
* vm.gc.Serial

test/hotspot/jtreg/compiler/c2/aarch64/TestVolatilesShenandoah.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*
2929
* @modules java.base/jdk.internal.misc
3030
*
31+
* @requires vm.flagless
3132
* @requires os.arch=="aarch64" & vm.debug == true &
3233
* vm.flavor == "server" &
3334
* vm.gc.Shenandoah

0 commit comments

Comments
 (0)