diff --git a/test/hotspot/jtreg/compiler/linkage/TestLinkageErrorInGenerateOopMap.java b/test/hotspot/jtreg/compiler/linkage/TestLinkageErrorInGenerateOopMap.java index 06491eb77292a..d61fc44dad4e5 100644 --- a/test/hotspot/jtreg/compiler/linkage/TestLinkageErrorInGenerateOopMap.java +++ b/test/hotspot/jtreg/compiler/linkage/TestLinkageErrorInGenerateOopMap.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2021, 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 @@ -26,8 +26,7 @@ * @bug 8190797 * @summary Test OSR compilation with bad operand stack. * @library /test/lib / - * @modules java.base/jdk.internal.misc - * java.management + * @requires vm.flagless * @compile OSRWithBadOperandStack.jasm * @run driver compiler.linkage.TestLinkageErrorInGenerateOopMap */ @@ -50,7 +49,7 @@ public static void main(String args[]) throws Exception { "-XX:CompileCommand=dontinline,compiler/linkage/OSRWithBadOperandStack.m*", "-XX:-CreateCoredumpOnCrash", "-Xmx64m", - "compiler.linkage.TestLinkageErrorInGenerateOopMap", + TestLinkageErrorInGenerateOopMap.class.getName(), "run"); OutputAnalyzer out = new OutputAnalyzer(pb.start()); if (out.getExitValue() != 0) {