< prev index next >
test/hotspot/jtreg/vmTestbase/metaspace/gc/MetaspaceBaseGC.java
Print this page
@@ -178,18 +178,17 @@
return Files.readAllLines(Paths.get(".", gclogFileName));
}
/**
* Reads gc.log file and counts GC induced by metaspace.
- * Note: this method doesn't work for ConcMarkSweep...
* @return how many times GC induced by metaspace has occurred.
*/
protected int getMetaspaceGCCount() {
int count = 0;
try {
for (String line: readGCLog()) {
- if (line.indexOf("Pause Full") > 0 && line.indexOf("Meta") > 0) {
+ if (line.indexOf("Metadata GC ") > 0) {
count++;
}
}
return count;
} catch (Throwable t) {
< prev index next >