< prev index next > test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java
8217332: JTREG: Clean up, use generics instead of raw types
// The amount of memory in kB reserved in the "Symbol" category that indicates a memory leak for
// this test.
public static final int ReservedThreshold = 70000;
public static void main(String[] args) throws Exception {
- ArrayList<String> baseargs = new ArrayList(Arrays.asList( "-Xms256M",
- "-Xmx256M",
- "-Xlog:gc*",
- "-XX:NativeMemoryTracking=summary",
- "-XX:+UnlockDiagnosticVMOptions",
- "-XX:+PrintNMTStatistics" ));
+ ArrayList<String> baseargs = new ArrayList<>(Arrays.asList("-Xms256M",
+ "-Xmx256M",
+ "-Xlog:gc*",
+ "-XX:NativeMemoryTracking=summary",
+ "-XX:+UnlockDiagnosticVMOptions",
+ "-XX:+PrintNMTStatistics" ));
baseargs.addAll(Arrays.asList(args));
baseargs.add(GCTest.class.getName());
ProcessBuilder pb_default =
ProcessTools.createJavaProcessBuilder(baseargs.toArray(new String[] {}));
verifySymbolMemoryUsageNotTooHigh(new OutputAnalyzer(pb_default.start()));
< prev index next >