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

Re: [PATCH] tests: cache glibc version check

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Aug 4, 2022, 19:16 UTC
Message-ID
<53cffc06-ebb1-ac97-ceb4-4c242a82c68a@gmail.com>
In-Reply-To
<xmqq4jyr6fuz.fsf@gitster.g>
Hi Junio
On 04/08/2022 19:08, Junio C Hamano wrote:
> "Phillip Wood via GitGitGadget" <gitgitgadget@gmail.com> writes:
 >
Show 12 quoted lines
> Between USE_LIBC_MALLOC_DEBUG, which is the name Peff originally
> gave this intermediate variable, and the one you use here, I am
> undecided.  If the only thing the GLIBC_TUNABLES mechanism can do
> were to tweak the malloc checking, then both names are good, but
> that is not the case.  We are only seeing if we are going to use the
> malloc check feature given by glibc here, so the original name feels
> more to the point, and use of GLIBC_TUNABLE mechanism to trigger
> that malloc check feature is a mere implementation detail.
> 
> But that is minor.  Let's queue the patch to help me not to forget
> about it, and we'll amend it if necessary, as we'd probably need a
> helped-by or signed-off-by from Peff anyway before this hits 'next'.

Oh, sorry I'd missed that message where Peff posted essentially the same patch. I wrote this at the same time as 067109a5e7 ("tests: make SANITIZE=address imply TEST_NO_MALLOC_CHECK", 2022-04-09) but did not post in then as we were in a rc period and then forgot about it. Having just read Peff's message this does not make much difference to the test timings and if I'd seen that before I wouldn't have posted this.

As for the variable name I don't mind particularly either way, I chose this name as the variable is checking whether we should use the glibc tunables mechanism or not.

Best Wishes
Phillip
> Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “tests: cache glibc version check”
  1. tests: cache glibc version checkPhillip Wood via GitGitGadget, Aug 4, 2022
  2. Phillip WoodAug 4, 2022
  3. Junio C HamanoAug 4, 2022
  4. Phillip WoodAug 4, 2022
  5. Junio C HamanoAug 4, 2022
  6. Junio C HamanoAug 4, 2022

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.