From c6552de965465d78790cff0feb358026c02c0f54 Mon Sep 17 00:00:00 2001 From: ctornqvi Date: Wed, 20 Mar 2013 08:17:55 +0100 Subject: [PATCH] 8010084: Race in runtime/NMT/BaselineWithParameter.java Summary: Added a waitFor() on the process Reviewed-by: mgerdin, sla, zgu --- test/runtime/NMT/BaselineWithParameter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtime/NMT/BaselineWithParameter.java b/test/runtime/NMT/BaselineWithParameter.java index 594bd7165..ff10b28a0 100644 --- a/test/runtime/NMT/BaselineWithParameter.java +++ b/test/runtime/NMT/BaselineWithParameter.java @@ -43,7 +43,7 @@ public class BaselineWithParameter { // Run 'jcmd 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 VM.native_memory summary=false' pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"}); -- GitLab