changeset 10018:bf094ac688e2

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
author ctornqvi
date Tue, 19 Aug 2014 06:56:59 -0700
parents 03903e40f93e
children 8e77f0117e66
files test/java/lang/instrument/NMTHelper.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/instrument/NMTHelper.java	Fri Sep 12 22:33:09 2014 +0400
+++ b/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");