44 return;
45 }
46
47 String[] concurrent = new String[] {
48 "Pause Init Mark",
49 "Pause Final Mark",
50 "Pause Init Update Refs",
51 "Pause Final Update Refs",
52 "Pause Init Traversal",
53 "Pause Final Traversal",
54 };
55
56 String[] opts = new String[] {
57 "",
58 "-XX:-ExplicitGCInvokesConcurrent",
59 "-XX:+ExplicitGCInvokesConcurrent"
60 };
61
62 for (String opt : opts) {
63 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
64 "-XX:+UnlockExperimentalVMOptions",
65 "-XX:+UseShenandoahGC",
66 "-Xlog:gc",
67 "-XX:+UnlockDiagnosticVMOptions",
68 opt,
69 "-XX:ShenandoahGCHeuristics=passive",
70 TestExplicitGCNoConcurrent.class.getName(),
71 "test");
72 OutputAnalyzer output = new OutputAnalyzer(pb.start());
73 for (String p : concurrent) {
74 output.shouldNotContain(p);
75 }
76 }
77 }
78 }
|
44 return;
45 }
46
47 String[] concurrent = new String[] {
48 "Pause Init Mark",
49 "Pause Final Mark",
50 "Pause Init Update Refs",
51 "Pause Final Update Refs",
52 "Pause Init Traversal",
53 "Pause Final Traversal",
54 };
55
56 String[] opts = new String[] {
57 "",
58 "-XX:-ExplicitGCInvokesConcurrent",
59 "-XX:+ExplicitGCInvokesConcurrent"
60 };
61
62 for (String opt : opts) {
63 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
64 "-Xmx128m",
65 "-XX:+UnlockExperimentalVMOptions",
66 "-XX:+UseShenandoahGC",
67 "-Xlog:gc",
68 "-XX:+UnlockDiagnosticVMOptions",
69 opt,
70 "-XX:ShenandoahGCHeuristics=passive",
71 TestExplicitGCNoConcurrent.class.getName(),
72 "test");
73 OutputAnalyzer output = new OutputAnalyzer(pb.start());
74 for (String p : concurrent) {
75 output.shouldNotContain(p);
76 }
77 }
78 }
79 }
|