Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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