8055012: [TESTBUG] NMTHelper fails to parse NMT output
authorctornqvi
Tue, 19 Aug 2014 06:56:59 -0700
changeset 25997 cd7dd678d9e2
parent 25996 4aa9eb909760
child 25998 3efc2a6b082a
8055012: [TESTBUG] NMTHelper fails to parse NMT output Summary: Fixed the regular expression to parse the slightly changed output format of the new NMT implementation Reviewed-by: olagneau, sla
jdk/test/java/lang/instrument/NMTHelper.java
--- a/jdk/test/java/lang/instrument/NMTHelper.java	Tue Aug 19 16:02:48 2014 +0900
+++ b/jdk/test/java/lang/instrument/NMTHelper.java	Tue Aug 19 06:56:59 2014 -0700
@@ -32,8 +32,8 @@
         executeDcmd("vmNativeMemory", "baseline");
     }
 
-    // Total:  reserved=3484685KB  +293KB, committed=266629KB +293KB
-    private static Pattern totalLine = Pattern.compile("^Total:  reserved=\\d+KB  .*KB, committed=\\d+KB (.*)KB$");
+    // Total: reserved=3484685KB +293KB, committed=266629KB +293KB
+    private static Pattern totalLine = Pattern.compile("^Total: reserved=\\d+KB .*KB, committed=\\d+KB (.*)KB$");
 
     public static long committedDiff() throws Exception {
         String res = (String) executeDcmd("vmNativeMemory", "detail.diff");