changeset 4368:a649f6511c04

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 08:17:55 +0100
parents eca90b8a06eb
children 91bf0bdae37b 2c7663baeb67 06db4c0afbf3
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 11:33:11 2013 -0700
+++ b/test/runtime/NMT/BaselineWithParameter.java	Wed Mar 20 08:17:55 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"});