These only pass on 64bit architectures diff --git a/testdata/testinput17 b/testdata/testinput17 index c396e8e8..5cdbe449 100644 --- a/testdata/testinput17 +++ b/testdata/testinput17 @@ -188,6 +188,11 @@ /(?(R)a*(?1)|((?R))b)/ \= Expect JIT stack limit reached aaaabcde + +# A single large stack allocation must grow beyond the current stack top. + +/((?(DEFINE)\[()\g{-1}]{1400}).{1}(?R)|)/expand,jit + AAAAAA\=jitstack=192 # Invalid options disable JIT when called via pcre2_match(), causing the # match to happen via the interpreter, but for fast JIT invalid options are diff --git a/testdata/testoutput17 b/testdata/testoutput17 index 5aae0367..590b30c0 100644 --- a/testdata/testoutput17 +++ b/testdata/testoutput17 @@ -348,6 +348,12 @@ Failed: error -46: JIT stack limit reached \= Expect JIT stack limit reached aaaabcde Failed: error -46: JIT stack limit reached + +# A single large stack allocation must grow beyond the current stack top. + +/((?(DEFINE)\[()\g{-1}]{1400}).{1}(?R)|)/expand,jit + AAAAAA\=jitstack=192 +Failed: error -46: JIT stack limit reached # Invalid options disable JIT when called via pcre2_match(), causing the # match to happen via the interpreter, but for fast JIT invalid options are -- 2.56.0