Re: [pcre-dev] JIT is silently off

Αρχική Σελίδα
Delete this message
Συντάκτης: Zoltán Herczeg
Ημερομηνία:  
Προς: ND
Υ/ο: Pcre-dev
Αντικείμενο: Re: [pcre-dev] JIT is silently off
>It's very bad news for me.
>Yesterday I test my patterns (each have around 1,5-2M size) and find that
>JIT don't work with all of they.
>Unfortunately this patterns can't be splitted due to it's automatically
>construction.
>Is there way to grow this 64K stack size or another way to use JIT?


Well, you can change the following constant in sljitLir.h:

/* The local_size must be >= 0 and <= SLJIT_MAX_LOCAL_SIZE. */
#define SLJIT_MAX_LOCAL_SIZE    65536


However, very large values may not work on all supported CPUs. So try bigger values (e.g. 512K) and see what happens. I never tested bigger values.

Regards,
Zoltan