diff --git a/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWait.java b/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWait.java index 39031a6f55adf..66cf04fd62f7b 100644 --- a/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWait.java +++ b/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. * @@ -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 */ diff --git a/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWaitC1.java b/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWaitC1.java index 17b11b5843c5a..fde38cf858efd 100644 --- a/test/hotspot/jtreg/compiler/onSpinWait/TestOnSpinWaitC1.java +++ b/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. * @@ -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 */