Skip to content

Commit

Permalink
8266153: mark hotspot compiler/onSpinWait tests which ignore VM flags
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
iignatev committed Apr 27, 2021
1 parent eeddb30 commit 30b1354
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWait.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright 2016 Azul Systems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -27,8 +27,10 @@
* @summary (x86 only) checks that java.lang.Thread.onSpinWait is intrinsified
* @bug 8147844
* @library /test/lib
* @modules java.base/jdk.internal.misc
*
* @requires vm.flagless
* @requires os.arch=="x86" | os.arch=="amd64" | os.arch=="x86_64"
*
* @run driver compiler.onSpinWait.TestOnSpinWait
*/

Expand Down
6 changes: 4 additions & 2 deletions test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWaitC1.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright 2016 Azul Systems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -27,9 +27,11 @@
* @summary (x86 only) checks that java.lang.Thread.onSpinWait is intrinsified
* @bug 8147844
* @library /test/lib
* @modules java.base/jdk.internal.misc
*
* @requires vm.flagless
* @requires os.arch=="x86" | os.arch=="amd64" | os.arch=="x86_64"
* @requires vm.compiler1.enabled
*
* @run driver compiler.onSpinWait.TestOnSpinWaitC1
*/

Expand Down

1 comment on commit 30b1354

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.