Re: [pcre-dev] JIT is silently off

Page principale
Supprimer ce message
Auteur: Zoltán Herczeg
Date:  
À: ND
CC: Pcre-dev
Sujet: 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