--- code/trunk/doc/html/pcrejit.html 2011/12/05 12:33:44 784 +++ code/trunk/doc/html/pcrejit.html 2011/12/28 17:16:11 836 @@ -68,7 +68,7 @@ If your program may sometimes be linked with versions of PCRE that are older than 8.20, but you want to use JIT when it is available, you can test the values of PCRE_MAJOR and PCRE_MINOR, or the existence of a JIT macro such -as PCRE_CONFIG_JIT, for compile-time control of your code. +as PCRE_CONFIG_JIT, for compile-time control of your code.


SIMPLE USE OF JIT

@@ -88,7 +88,7 @@ #define PCRE_STUDY_JIT_COMPILE 0 #endif -so that no option is passed to pcre_study(), and then use something like +so that no option is passed to pcre_study(), and then use something like this to free the study data:

   #ifdef PCRE_CONFIG_JIT
@@ -188,7 +188,7 @@
 managing blocks of memory for use as JIT stacks. There is further discussion
 about the use of JIT stacks in the section entitled
 "JIT stack FAQ"
-below. 
+below.
 

The pcre_jit_stack_alloc() function creates a JIT stack. Its arguments @@ -269,7 +269,7 @@ we do the recursion in memory.

-(2) Why don't we simply allocate blocks of memory with malloc()? +(2) Why don't we simply allocate blocks of memory with malloc()?

Modern operating systems have a nice feature: they can reserve an address space @@ -280,7 +280,7 @@ grow up to 1M anytime if needed.

-(3) Who "owns" a JIT stack? +(3) Who "owns" a JIT stack?

The owner of the stack is the user program, not the JIT studied pattern or @@ -317,7 +317,7 @@

(6) OK, the stack is for long term memory allocation. But what happens if a pattern causes stack overflow with a stack of 1M? Is that 1M kept until the -stack is freed? +stack is freed?

Especially on embedded sytems, it might be a good idea to release @@ -328,7 +328,7 @@

(7) This is too much of a headache. Isn't there any better solution for JIT -stack handling? +stack handling?

No, thanks to Windows. If POSIX threads were used everywhere, we could throw