summaryrefslogtreecommitdiff
path: root/doc/pcre2jit.3
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-11-14 16:48:32 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-11-14 16:48:32 +0000
commit8ccf72daf9ea0d39df02e3d46d594898b6ad7e2e (patch)
treee1cd8b395b566fd4cd791216642ea1318996561f /doc/pcre2jit.3
parent718b04a5c32ce7335b15a1c1628d9fd37fad132c (diff)
downloadpcre2-8ccf72daf9ea0d39df02e3d46d594898b6ad7e2e.tar.gz
Document JIT compile size limit and give more info in pcre2test.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@434 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/pcre2jit.3')
-rw-r--r--doc/pcre2jit.310
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/pcre2jit.3 b/doc/pcre2jit.3
index e76ad10..a2117ea 100644
--- a/doc/pcre2jit.3
+++ b/doc/pcre2jit.3
@@ -1,4 +1,4 @@
-.TH PCRE2JIT 3 "28 July 2014" "PCRE2 10.21"
+.TH PCRE2JIT 3 "14 November 2015" "PCRE2 10.21"
.SH NAME
PCRE2 - Perl-compatible regular expressions (revised API)
.SH "PCRE2 JUST-IN-TIME COMPILER SUPPORT"
@@ -61,6 +61,12 @@ much faster than the normal interpretive code, but yields exactly the same
results. The returned value from \fBpcre2_jit_compile()\fP is zero on success,
or a negative error code.
.P
+There is a limit to the size of pattern that JIT supports, imposed by the size
+of machine stack that it uses. The exact rules are not documented because they
+may change at any time, in particular, when new optimizations are introduced.
+If a pattern is too big, a call to \fBpcre2_jit_compile()\fB returns
+PCRE2_ERROR_NOMEMORY.
+.P
PCRE2_JIT_COMPLETE requests the JIT compiler to generate code for complete
matches. If you want to run partial matches using the PCRE2_PARTIAL_HARD or
PCRE2_PARTIAL_SOFT options of \fBpcre2_match()\fP, you should set one or both
@@ -404,6 +410,6 @@ Cambridge, England.
.rs
.sp
.nf
-Last updated: 28 July 2015
+Last updated: 14 November 2015
Copyright (c) 1997-2015 University of Cambridge.
.fi