8156769: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java fails with java.lang.Exception
Summary: Update test to use jhsdb instead of jmap
Reviewed-by: sla
--- a/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Thu May 12 13:25:11 2016 +0200
+++ b/hotspot/test/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Thu May 12 17:47:45 2016 +0300
@@ -51,8 +51,10 @@
String pid = Long.toString(ProcessTools.getProcessId());
- JDKToolLauncher jmap = JDKToolLauncher.create("jmap")
- .addToolArg("-heap")
+ JDKToolLauncher jmap = JDKToolLauncher.create("jhsdb")
+ .addToolArg("jmap")
+ .addToolArg("--heap")
+ .addToolArg("--pid")
.addToolArg(pid);
ProcessBuilder pb = new ProcessBuilder(jmap.getCommand());