Welcome! Log In Create A New Profile

Advanced

Re: Using pcre_jit

Maxim Dounin
February 16, 2016 12:02PM
Hello!

On Tue, Feb 16, 2016 at 11:29:32AM -0500, Alt wrote:

> Hello,
>
> To use pcre_jit ( http://nginx.org/r/pcre_jit ), is it mandatory to compile
> nginx with "--with-pcre-jit"?
> On FreeBSD, nginx isn't compiled with "--with-pcre-jit", but I can still use
> "pcre_jit on;" without nginx throwing errors. So, does nginx really use PCRE
> JIT in this case?
>
> This bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200793
> mention "--with-pcre-jit" isn't needed.

Sergey Osokin's response is correct.

The "--with-pcre-jit" is only needed when you compile PCRE library
using nginx configure (./configure --with-pcre=<path> ...). When
using a system PCRE library whether or not JIT is supported
depends on how the library was compiled.

On FreeBSD PCRE is compiled with JIT enabled except on few archs
where it's not available.

If you'll try to use "pcre_jit on" without JIT available, nginx
will warn you during configuration parsing:

nginx: [warn] nginx was built without PCRE JIT support in ...

Or, if nginx was compiled with JIT available, but currently loaded
PCRE library does not support JIT:

nginx: [warn] PCRE library does not support JIT in ...

If you don't see these messages - this means that JIT is used.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using pcre_jit

Alt February 16, 2016 11:29AM

Re: Using pcre_jit

Valentin V. Bartenev February 16, 2016 11:46AM

Re: Using pcre_jit

Alt February 16, 2016 12:09PM

Re: Using pcre_jit

Maxim Dounin February 16, 2016 12:02PM

Re: Using pcre_jit

Alt February 16, 2016 12:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 253
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready