ACL: in "regex" condition, release store every thousand lines. Bug 3047
[exim.git] / src / src / macros.h
index 5279f70d0153a173d3903e815697912a00c51424..8aed335b59fc021fbab5f31d7b9dcf4a269154bb 100644 (file)
@@ -1185,4 +1185,9 @@ typedef enum {
   sw_mrc_tx_fail,              /* transmit failed */
 } sw_mrc_t;
 
+/* Recent versions of PCRE2 are allocating 20kB per match, rather than the previous 112 B.
+When doing en extended loop of matching, release store periodically. */
+
+#define        REGEX_LOOPCOUNT_STORE_RESET     1000
+
 /* End of macros.h */