Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8289162: runtime/NMT/ThreadedMallocTestType.java should print out mem…
…ory allocations to help debug

Reviewed-by: hseigel, coleenp
  • Loading branch information
Gerard Ziemski committed Sep 27, 2022
1 parent a11477c commit 739fdec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/hotspot/jtreg/runtime/NMT/ThreadedMallocTestType.java
Expand Up @@ -61,6 +61,10 @@ public void run() {
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());
Expand Down

0 comments on commit 739fdec

Please sign in to comment.