]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Replace PCRE with PCRE2 where it is available.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 9 Dec 2016 19:06:06 +0000 (19:06 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 9 Dec 2016 19:06:06 +0000 (19:06 +0000)
commit12cfcf08fffc6e4ec597e0396016d09afdb89fa8
tree66e9f56e55c5e6747d416aae98c153ba7f759cfa
parentff7722bc9ac179985c79d302e0ac9aa98c2570c9
Replace PCRE with PCRE2 where it is available.

This patch removes the needless assignment of re_erroffset in the conf pool
by the worker threads; such mistakes break the shared copy-on-write pages of
memory that should have remained common between all httpd worker processes.

Two de-optimizations are inherent in this patch, the former ovector-on-stack
opportunity is lost unless implemented as a new general context. Safer that
we either create a new general context using pool allocation, or recycle a
per pool or per thread match_data buffer of some arbitrary 10 elts or so.

Submitted by: wrowe, Petr Pisar <ppisar@redhat.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1773454 13f79535-47bb-0310-9956-ffa450edef68
configure.in
server/util_pcre.c