Revision: 830
http://www.exim.org/viewvc/pcre2?view=rev&revision=830
Author: ph10
Date: 2017-06-16 19:04:41 +0100 (Fri, 16 Jun 2017)
Log Message:
-----------
Minor code tidy.
Modified Paths:
--------------
code/trunk/src/pcre2grep.c
Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c 2017-06-16 17:57:18 UTC (rev 829)
+++ code/trunk/src/pcre2grep.c 2017-06-16 18:04:41 UTC (rev 830)
@@ -4053,6 +4053,8 @@
/* Unless JIT has been explicitly disabled, arrange a stack for it to use. */
+
+#ifdef NEVER
#ifdef SUPPORT_PCRE2GREP_JIT
if (use_jit)
jit_stack = pcre2_jit_stack_create(32*1024, 1024*1024, NULL);
@@ -4065,7 +4067,18 @@
pcre2_jit_stack_assign(match_context, NULL, jit_stack);
#endif
}
+#endif
+
+#ifdef SUPPORT_PCRE2GREP_JIT
+if (use_jit)
+ {
+ jit_stack = pcre2_jit_stack_create(32*1024, 1024*1024, NULL);
+ if (jit_stack != NULL )
+ pcre2_jit_stack_assign(match_context, NULL, jit_stack);
+ }
+#endif
+
/* If there are include or exclude patterns read from the command line, compile
them. -F, -w, and -x do not apply, so the third argument of compile_pattern is
0. */