From a4e6438fe9c150d2b4d93f852b90f09484c3a01a Mon Sep 17 00:00:00 2001 From: Kirill Shirokov Date: Thu, 26 Mar 2026 21:02:45 -0700 Subject: [PATCH] Fix intermittent failures due to mixed output in CompileLevelPrintTest.java --- .../compilercontrol/commands/CompileLevelPrintTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/compiler/compilercontrol/commands/CompileLevelPrintTest.java b/test/hotspot/jtreg/compiler/compilercontrol/commands/CompileLevelPrintTest.java index b9e1eebd8ff..379f46349c3 100644 --- a/test/hotspot/jtreg/compiler/compilercontrol/commands/CompileLevelPrintTest.java +++ b/test/hotspot/jtreg/compiler/compilercontrol/commands/CompileLevelPrintTest.java @@ -150,7 +150,7 @@ public class CompileLevelPrintTest { ".*\\n-{35} Assembly -{35}\\n(?:\\[[0-9.]+s]\\[warning]\\[os] Loading hsdis library failed\\n)?\\nCompiled method \\((?:c1|c2)\\) (\\d+) (C1|C2): *" + "(\\d+) ([ %][ s][ !][ b][ n]) ([-0-4 ]) +([^ ]+) \\(\\d+ bytes\\)", Pattern.DOTALL); private static final Pattern reMethodData = Pattern.compile( - ".*\\n-{72}\\nstatic ([^\\n]+)\\ninterpreter_invocation_count: *\\d+", Pattern.DOTALL); + ".*-{72}\\nstatic ([^\\n]+)\\n *interpreter_invocation_count: *\\d+\\n *invocation_counter: *\\d+", Pattern.DOTALL); public static void run(String compileCmd, String cmdCompLevel,