From 45a7d6795da8b5c4d048fc9e7a6fa7198fa8fc12 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 10 Sep 2021 12:18:38 +0200 Subject: [PATCH] Fix #81424: PCRE2 10.35 JIT performance regression We backport the respective upstream fix[1] to our bundled pcre2lib. [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 61aa019d1012..bd08cfcbad61 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) +if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL) { early_fail_ptr = 0; early_fail_type = type_skip;