Re: [PATCH v3] test-lib.sh: Use GLIBC_TUNABLES instead of MALLOC_CHECK_ on glibc >= 2.34
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 4, 2022, 19:59 UTC
- Message-ID
- <xmqqfsnx1oc9.fsf@gitster.g>
- In-Reply-To
- <20220304133702.26706-1-gitter.spiros@gmail.com>
Elia Pinto <gitter.spiros@gmail.com> writes:
Show 17 quoted lines
> In glibc >= 2.34 MALLOC_CHECK_ and MALLOC_PERTURB_ environment > variables have been replaced by GLIBC_TUNABLES. Also the new > glibc requires that you preload a library called libc_malloc_debug.so > to get these features. > > Using the ordinary glibc system variable detect if this is glibc >= 2.34 and > use GLIBC_TUNABLES and the new library. > > This patch was inspired by a Richard W.M. Jones ndbkit patch > > Helped-by: Junio C Hamano <gitster@pobox.com> > Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> > --- > This is the third version of the patch. > > Compared to the second version[1], the code is further simplified, > eliminating a case statement and modifying a string statement.
Thanks; will queue. Let's declare victory and merge it down to 'next' and 'master/main'.