diff --git a/test/hotspot/jtreg/compiler/arguments/TestScavengeRootsInCode.java b/test/hotspot/jtreg/compiler/arguments/TestScavengeRootsInCode.java index 69865ddabbd..224ce752135 100644 --- a/test/hotspot/jtreg/compiler/arguments/TestScavengeRootsInCode.java +++ b/test/hotspot/jtreg/compiler/arguments/TestScavengeRootsInCode.java @@ -25,7 +25,7 @@ * @test * @bug 8214025 * @summary Test compilation with non-default value for ScavengeRootsInCode. - * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -Xcomp -XX:-TieredCompilation + * @run main/othervm -XX:+UnlockDiagnosticVMOptions -Xcomp -XX:-TieredCompilation * -XX:ScavengeRootsInCode=1 compiler.arguments.TestScavengeRootsInCode */