changeset 16429:c5b14a727c72

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 1b55a8d558b8
children 882cddc35bec 14c66a8678fe 6b67e51e3cfb
files hotspot/test/runtime/NMT/BaselineWithParameter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/test/runtime/NMT/BaselineWithParameter.java	Tue Mar 19 11:33:11 2013 -0700
+++ b/hotspot/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"});