Re: [pcre-dev] PCRE2 and thread safety of jit compilation?

Startseite
Nachricht löschen
Autor: Giuseppe D'Angelo
Datum:  
To: Zoltán Herczeg
CC: pcre-dev
Betreff: Re: [pcre-dev] PCRE2 and thread safety of jit compilation?
Hi,

On Mon, Jan 4, 2016 at 1:59 PM, Zoltán Herczeg <hzmester@???> wrote:
> you can do this now as well. Just replace pcre_study to pcre2_jit_compile. There is no need to check JIT availability, the call will return with an error in that case (and you can silently ignore it). If other threads use the same pattern, they use the interpreted match until the compilation is done ("done" means an atomic write operation).


Do you mean that PCRE internally will read/save the JIT-compiled data
inside the pcre2_code using atomic operations?

(Threads matching checking for availability of such data using
load/acquire, thread doing the jit compilation saving it using
store/release?)

Cheers,
--
Giuseppe D'Angelo