51 } |
51 } |
52 if (GC.G1.isSupported()) { |
52 if (GC.G1.isSupported()) { |
53 noneGCSupported = false; |
53 noneGCSupported = false; |
54 testGCId("UseG1GC"); |
54 testGCId("UseG1GC"); |
55 } |
55 } |
56 if (GC.ConcMarkSweep.isSupported()) { |
|
57 noneGCSupported = false; |
|
58 testGCId("UseConcMarkSweepGC"); |
|
59 } |
|
60 if (GC.Serial.isSupported()) { |
56 if (GC.Serial.isSupported()) { |
61 noneGCSupported = false; |
57 noneGCSupported = false; |
62 testGCId("UseSerialGC"); |
58 testGCId("UseSerialGC"); |
63 } |
59 } |
64 if (GC.Shenandoah.isSupported()) { |
60 if (GC.Shenandoah.isSupported()) { |
65 noneGCSupported = false; |
61 noneGCSupported = false; |
66 testGCId("UseShenandoahGC"); |
62 testGCId("UseShenandoahGC"); |
67 } |
63 } |
68 |
64 |
69 if (noneGCSupported) { |
65 if (noneGCSupported) { |
70 throw new SkippedException("Skipping test because none of Parallel/G1/ConcMarkSweep/Serial/Shenandoah is supported."); |
66 throw new SkippedException("Skipping test because none of Parallel/G1/Serial/Shenandoah is supported."); |
71 } |
67 } |
72 } |
68 } |
73 |
69 |
74 private static void verifyContainsGCIDs(OutputAnalyzer output) { |
70 private static void verifyContainsGCIDs(OutputAnalyzer output) { |
75 output.shouldMatch("\\[.*\\]\\[.*\\]\\[.*\\] GC\\(0\\) "); |
71 output.shouldMatch("\\[.*\\]\\[.*\\]\\[.*\\] GC\\(0\\) "); |