Skip to content

Commit 910053b

Browse files
tkiriyamaDavid Holmes
authored and
David Holmes
committedJun 28, 2022
8280235: Deprecated flag FlightRecorder missing from VMDeprecatedOptions test
Reviewed-by: dholmes, mgronlun
1 parent 7b3bf97 commit 910053b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,22 @@
2828
import jdk.test.lib.process.ProcessTools;
2929
import jdk.test.lib.process.OutputAnalyzer;
3030
import jdk.test.lib.cli.*;
31+
import sun.hotspot.WhiteBox;
3132

3233
/*
3334
* @test
3435
* @bug 8066821
3536
* @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
3637
* @modules java.base/jdk.internal.misc
3738
* @library /test/lib
38-
* @run driver VMDeprecatedOptions
39+
* @build sun.hotspot.WhiteBox
40+
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
41+
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI VMDeprecatedOptions
42+
3943
*/
4044
public class VMDeprecatedOptions {
4145

46+
private final static WhiteBox wb = WhiteBox.getWhiteBox();
4247
/**
4348
* each entry is {[0]: option name, [1]: value to set
4449
* (true/false/n/string)}.
@@ -62,6 +67,9 @@ public class VMDeprecatedOptions {
6267
{"CreateMinidumpOnCrash", "false"}
6368
}
6469
));
70+
if (wb.isJFRIncluded()) {
71+
deprecated.add(new String[] {"FlightRecorder", "false"});
72+
}
6573
DEPRECATED_OPTIONS = deprecated.toArray(new String[][]{});
6674
};
6775

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jun 28, 2022

@openjdk-notifier[bot]
Please sign in to comment.