changeset 4303:99d14be80708

8010084: Race in runtime/NMT/BaselineWithParameter.java Summary: Added a waitFor() on the process Reviewed-by: mgerdin, sla, zgu
author ctornqvi
date Wed, 20 Mar 2013 17:07:09 +0100
parents 47b5859d4634
children 5bcfc2ed94a5
files test/runtime/NMT/BaselineWithParameter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/NMT/BaselineWithParameter.java	Tue Mar 19 23:14:19 2013 +0100
+++ b/test/runtime/NMT/BaselineWithParameter.java	Wed Mar 20 17:07:09 2013 +0100
@@ -43,7 +43,7 @@
 
     // Run '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'
     pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"});