Skip to content
Permalink
Browse files
8270021: Incorrect log decorators in gc/g1/plab/TestPLABEvacuationFai…
…lure.java

Reviewed-by: tschatzl, iwalulya
  • Loading branch information
albertnetymk committed Jul 8, 2021
1 parent 30bba54 commit 4a45d95719bf68221e6843572511c2eb741ba69c
Showing with 12 additions and 8 deletions.
  1. +1 −1 test/hotspot/jtreg/gc/g1/plab/TestPLABEvacuationFailure.java
  2. +11 −7 test/hotspot/jtreg/gc/g1/plab/lib/LogParser.java
@@ -68,7 +68,7 @@
"failure wasted"));

private static final String[] COMMON_OPTIONS = {
"-Xlog:gc=debug,gc+phases=trace",
"-Xlog:gc,gc+plab=debug",
"-XX:+UseG1GC",
"-XX:InitiatingHeapOccupancyPercent=100",
"-XX:-G1UseAdaptiveIHOP",
@@ -190,13 +190,17 @@ public PlabInfo getSpecifiedStats(long specifiedGcId, LogParser.ReportType type,
}

private Map<Long, PlabInfo> getSpecifiedStats(List<Long> gcIds, LogParser.ReportType type, List<String> fieldNames, boolean extractId) {
return new HashMap<>(
getEntries().entryStream()
.filter(gcLogItem -> extractId == gcIds.contains(gcLogItem.getKey()))
.collect(Collectors.toMap(gcLogItem -> gcLogItem.getKey(),
gcLogItem -> gcLogItem.getValue().get(type).filter(fieldNames)
var map = new HashMap<>(
getEntries().entryStream()
.filter(gcLogItem -> extractId == gcIds.contains(gcLogItem.getKey()))
.collect(Collectors.toMap(gcLogItem -> gcLogItem.getKey(),
gcLogItem -> gcLogItem.getValue().get(type).filter(fieldNames)
)
)
)
);
);
if (map.isEmpty()) {
throw new RuntimeException("Cannot find relevant PLAB statistics in the log");
}
return map;
}
}

1 comment on commit 4a45d95

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 4a45d95 Jul 8, 2021

Please sign in to comment.