From 482e4a88597cb171a5a78bd7c764ca8c3ff1f2c2 Mon Sep 17 00:00:00 2001 From: Christian Tornqvist Date: Tue, 19 Aug 2014 06:56:59 -0700 Subject: [PATCH] 8055012: [TESTBUG] NMTHelper fails to parse NMT output 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/test/java/lang/instrument/NMTHelper.java b/jdk/test/java/lang/instrument/NMTHelper.java index ad08fdb7708..c5843f8f49b 100644 --- a/jdk/test/java/lang/instrument/NMTHelper.java +++ b/jdk/test/java/lang/instrument/NMTHelper.java @@ -32,8 +32,8 @@ public class NMTHelper 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");