git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix NO_LIBPCRE1_JIT to fully disable JIT

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2017, 03:53 UTC
Message-ID
<xmqqmv3qal78.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<87tvxzxm0j.fsf@evledraar.booking.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 23 quoted lines
> On Sun, Nov 12 2017, Charles Bailey jotted:
>
>> From: Charles Bailey <cbailey32@bloomberg.net>
>>
>> If you have a pcre1 library which is compiled with JIT enabled then
>> PCRE_STUDY_JIT_COMPILE will be defined whether or not the
>> NO_LIBPCRE1_JIT configuration is set.
>>
>> This means that we enable JIT functionality when calling pcre_study
>> even if NO_LIBPCRE1_JIT has been explicitly set and we just use plain
>> pcre_exec later.
>>
>> Fix this by using own macro (GIT_PCRE_STUDY_JIT_COMPILE) which we set to
>> PCRE_STUDY_JIT_COMPILE only if NO_LIBPCRE1_JIT is not set and define to
>> 0 otherwise, as before.
>> ---
>>
>> I was bisecting an issue with the PCRE support that was causing a test
>> ...
>
> [CC-ing Junio]
>
> Thanks a lot. This patch looks good to me.
Thanks.  This patch needs a sign-off, by the way.
> But that we should take it anyway regardless of that since it'll *also*
> work on Linux with your patch, and this logic makes some sense whereas
> the other one clearly didn't and just worked by pure accident of some
> toolchain semantics that I haven't figured out yet.
That is curious and would be nice to know the answer to.
Previous: Ævar Arnfjörð BjarmasonNext: Charles Bailey
Message 3 of 5 in “Fix NO_LIBPCRE1_JIT to fully disable JIT”
  1. Fix NO_LIBPCRE1_JIT to fully disable JITCharles Bailey, Nov 12, 2017
  2. Ævar Arnfjörð BjarmasonNov 12, 2017
  3. Junio C HamanoNov 13, 2017
  4. Charles BaileyNov 13, 2017
  5. Junio C HamanoNov 14, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.