52 *
53 * @library /vmTestbase
54 * /test/lib
55 * @run driver jdk.test.lib.FileInstaller . .
56 * @build sun.hotspot.WhiteBox
57 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
58 * sun.hotspot.WhiteBox$WhiteBoxPermission
59 * @run main/othervm/native
60 * -Xbootclasspath/a:.
61 * -XX:+UnlockDiagnosticVMOptions
62 * -XX:+WhiteBoxAPI
63 * TestDriver
64 */
65
66 public class TestDriver {
67 public static void main(String[] args) throws Exception {
68 sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
69 Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
70 Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
71 Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
72
73 String keyPhrase;
74 if (isExplicitGCInvokesConcurrentOn && (isUseG1GCon || isUseConcMarkSweepGCon)) {
75 keyPhrase = "GC";
76 } else {
77 keyPhrase = "Pause Full";
78 }
79
80 nsk.jvmti.scenarios.general_functions.GF08.gf08t.main(new String[] {
81 "gf08t001",
82 nsk.jvmti.scenarios.general_functions.GF08.gf08t001.class.getName(),
83 keyPhrase,
84 "gc"});
85 }
86 }
87
|
52 *
53 * @library /vmTestbase
54 * /test/lib
55 * @run driver jdk.test.lib.FileInstaller . .
56 * @build sun.hotspot.WhiteBox
57 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
58 * sun.hotspot.WhiteBox$WhiteBoxPermission
59 * @run main/othervm/native
60 * -Xbootclasspath/a:.
61 * -XX:+UnlockDiagnosticVMOptions
62 * -XX:+WhiteBoxAPI
63 * TestDriver
64 */
65
66 public class TestDriver {
67 public static void main(String[] args) throws Exception {
68 sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
69 Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
70 Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
71 Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
72 Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");
73
74 String keyPhrase;
75 if ((isExplicitGCInvokesConcurrentOn && (isUseG1GCon || isUseConcMarkSweepGCon)) || isUseZGCon) {
76 keyPhrase = "GC";
77 } else {
78 keyPhrase = "Pause Full";
79 }
80
81 nsk.jvmti.scenarios.general_functions.GF08.gf08t.main(new String[] {
82 "gf08t001",
83 nsk.jvmti.scenarios.general_functions.GF08.gf08t001.class.getName(),
84 keyPhrase,
85 "gc"});
86 }
87 }
88
|