From 32e446f9d13254c9f6f0fcce86e910238e9825c0 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 5 Oct 2021 11:23:27 +0200 Subject: [PATCH] Revert "Fix #81424: PCRE2 10.35 JIT performance regression" This reverts commit a2471383fec332ae30827c7e3f4f9451420f1f0b. Fixing the performance regression, apparently fixes a functional regression[1], so we revert for now. [1] --- ext/pcre/pcre2lib/pcre2_jit_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcre/pcre2lib/pcre2_jit_compile.c b/ext/pcre/pcre2lib/pcre2_jit_compile.c index bd08cfcbad619..61aa019d10124 100644 --- a/ext/pcre/pcre2lib/pcre2_jit_compile.c +++ b/ext/pcre/pcre2lib/pcre2_jit_compile.c @@ -11152,7 +11152,7 @@ early_fail_type = (early_fail_ptr & 0x7); early_fail_ptr >>= 3; /* During recursion, these optimizations are disabled. */ -if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL) +if (common->early_fail_start_ptr == 0) { early_fail_ptr = 0; early_fail_type = type_skip;