93 "ThreadRoots",
94 "UniverseRoots",
95 "JNIRoots",
96 "ObjectSynchronizerRoots",
97 "ManagementRoots",
98 "SystemDictionaryRoots",
99 "CLDGRoots",
100 "JVMTIRoots",
101 "CMRefRoots",
102 "MergeER",
103 "MergeHCC",
104 "MergeRS",
105 "MergeLB",
106 "ScanHR",
107 "CodeRoots",
108 "ObjCopy",
109 "Termination",
110 "StringDedupQueueFixup",
111 "StringDedupTableFixup",
112 "RedirtyCards",
113 "NonYoungFreeCSet",
114 "YoungFreeCSet"
115 );
116
117 // Some GC phases may or may not occur depending on environment. Filter them out
118 // since we can not reliably guarantee that they occur (or not).
119 Set<String> optPhases = of(
120 "OptScanHR",
121 "OptMergeRS",
122 "OptCodeRoots",
123 "OptObjCopy"
124 );
125 usedPhases.removeAll(optPhases);
126
127 assertTrue(usedPhases.equals(allPhases), "Compare events expected and received"
128 + ", Not found phases: " + allPhases.stream().filter(p -> !usedPhases.contains(p)).collect(joining(", "))
129 + ", Not expected phases: " + usedPhases.stream().filter(p -> !allPhases.contains(p)).collect(joining(", ")));
130 }
131 }
132
133 /**
134 * Utility class to guarantee a mixed GC. The class allocates several arrays and
|
93 "ThreadRoots",
94 "UniverseRoots",
95 "JNIRoots",
96 "ObjectSynchronizerRoots",
97 "ManagementRoots",
98 "SystemDictionaryRoots",
99 "CLDGRoots",
100 "JVMTIRoots",
101 "CMRefRoots",
102 "MergeER",
103 "MergeHCC",
104 "MergeRS",
105 "MergeLB",
106 "ScanHR",
107 "CodeRoots",
108 "ObjCopy",
109 "Termination",
110 "StringDedupQueueFixup",
111 "StringDedupTableFixup",
112 "RedirtyCards",
113 "ParFreeCSet",
114 "NonYoungFreeCSet",
115 "YoungFreeCSet",
116 "RebuildFreeList"
117 );
118
119 // Some GC phases may or may not occur depending on environment. Filter them out
120 // since we can not reliably guarantee that they occur (or not).
121 Set<String> optPhases = of(
122 "OptScanHR",
123 "OptMergeRS",
124 "OptCodeRoots",
125 "OptObjCopy"
126 );
127 usedPhases.removeAll(optPhases);
128
129 assertTrue(usedPhases.equals(allPhases), "Compare events expected and received"
130 + ", Not found phases: " + allPhases.stream().filter(p -> !usedPhases.contains(p)).collect(joining(", "))
131 + ", Not expected phases: " + usedPhases.stream().filter(p -> !allPhases.contains(p)).collect(joining(", ")));
132 }
133 }
134
135 /**
136 * Utility class to guarantee a mixed GC. The class allocates several arrays and
|