The following tests:
hotspot/gc/g1/TestHumongousShrinkHeap.java
hotspot/gc/g1/TestShrinkDefragmentedHeap.java
hotspot/gc/parallel/TestDynShrinkHeap.java
have own implementation of printing MemoryUsage functionality.
MemoryUsagePrinter class is replicated several times.
It could be moved to the the library code (gc.testlibrary.Helpers)
Suggested API:
public static String formatNumber(Number n);
public static void printMemoryUsage(String label, MemoryUsage mu);
hotspot/gc/g1/TestHumongousShrinkHeap.java
hotspot/gc/g1/TestShrinkDefragmentedHeap.java
hotspot/gc/parallel/TestDynShrinkHeap.java
have own implementation of printing MemoryUsage functionality.
MemoryUsagePrinter class is replicated several times.
It could be moved to the the library code (gc.testlibrary.Helpers)
Suggested API:
public static String formatNumber(Number n);
public static void printMemoryUsage(String label, MemoryUsage mu);
- relates to
-
JDK-8170860 Get rid of the humanReadableByteCount() method in openjdk/hotspot
-
- Resolved
-