File tree 1 file changed +9
-1
lines changed
test/hotspot/jtreg/runtime/CommandLine
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 28
28
import jdk .test .lib .process .ProcessTools ;
29
29
import jdk .test .lib .process .OutputAnalyzer ;
30
30
import jdk .test .lib .cli .*;
31
+ import sun .hotspot .WhiteBox ;
31
32
32
33
/*
33
34
* @test
34
35
* @bug 8066821
35
36
* @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
36
37
* @modules java.base/jdk.internal.misc
37
38
* @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
+
39
43
*/
40
44
public class VMDeprecatedOptions {
41
45
46
+ private final static WhiteBox wb = WhiteBox .getWhiteBox ();
42
47
/**
43
48
* each entry is {[0]: option name, [1]: value to set
44
49
* (true/false/n/string)}.
@@ -62,6 +67,9 @@ public class VMDeprecatedOptions {
62
67
{"CreateMinidumpOnCrash" , "false" }
63
68
}
64
69
));
70
+ if (wb .isJFRIncluded ()) {
71
+ deprecated .add (new String [] {"FlightRecorder" , "false" });
72
+ }
65
73
DEPRECATED_OPTIONS = deprecated .toArray (new String [][]{});
66
74
};
67
75
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Jun 28, 2022
Review
Issues