RFR(XS): 7902477: JMH perfasm fails with lastest JDK 13
Aleksey Shipilev
shade at redhat.com
Thu Oct 31 12:22:01 UTC 2019
Hi Nick,
On 10/30/19 10:37 AM, Nick Gasson wrote:
> As a workaround I changed the regex to anchor to the start of the line
> and require leading non-whitespace (the address on the line above has
> leading spaces where the stubs do not):
>
> Pattern.compile("^(\\S.*)( +)\\[(.+), (.+)[\\]\\[](.*)");
Can you show the example output where the original regexp fails? Because I think you are adding
another capture group here, which means the matcher indices at L850-751 below should be amended:
846 Pattern pattern = Pattern.compile("^(\\S.*)( +)\\[(.+), (.+)[\\]\\[](.*)");
847 Matcher matcher = pattern.matcher(line);
848
849 if (matcher.matches()) {
850 Long startAddr = parseAddress(matcher.group(3));
851 Long endAddr = parseAddress(matcher.group(4));
It is puzzling it works after your patch.
--
Thanks,
-Aleksey
More information about the jmh-dev
mailing list