8289162: runtime/NMT/ThreadedMallocTestType.java should print out memory allocations to help debug

Reviewed-by: hseigel, coleenp
This commit is contained in:
Gerard Ziemski 2022-09-27 16:27:32 +00:00
parent a11477ce25
commit 739fdec7ea

View File

@ -61,6 +61,10 @@ public class ThreadedMallocTestType {
allocThread.start();
allocThread.join();
System.out.println("memAlloc1:"+memAlloc1);
System.out.println("memAlloc2:"+memAlloc2);
System.out.println("memAlloc3:"+memAlloc3);
// Run 'jcmd <pid> VM.native_memory summary'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary"});
output = new OutputAnalyzer(pb.start());