提交 c6552de9 编写于 作者: C ctornqvi

8010084: Race in runtime/NMT/BaselineWithParameter.java

Summary: Added a waitFor() on the process
Reviewed-by: mgerdin, sla, zgu
上级 93e45dee
...@@ -43,7 +43,7 @@ public class BaselineWithParameter { ...@@ -43,7 +43,7 @@ public class BaselineWithParameter {
// Run 'jcmd <pid> VM.native_memory baseline=false' // Run 'jcmd <pid> VM.native_memory baseline=false'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=false"}); pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=false"});
pb.start(); pb.start().waitFor();
// Run 'jcmd <pid> VM.native_memory summary=false' // Run 'jcmd <pid> VM.native_memory summary=false'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"}); pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册