RFR: Regex exponential backtracking issue --- more cleanup/tuning

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Mar 9 11:49:55 UTC 2016


On 03/08/2016 08:45 PM, Xueming Shen wrote:
> [2] http://cr.openjdk.java.net/~sherman/regexClosure/MyBenchmark.java

Do return the matches() result:

    @Benchmark
    public boolean testMethod() {
        return matcher.reset(input).matches();
    }

Thanks,
-Aleksey




More information about the core-libs-dev mailing list