[PATCH] tests: elf: Fix flakiness of the tst-decorate-maps test
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Nov 23 17:12:38 GMT 2026
On 23/11/26 12:02, Yury Khrustalev wrote:
> Add glibc.malloc.hugetlb=0 tunable to avoid effect of hugepages
> on the memory layout that causes this test to be flaky due to
> occasional lack of the '[anon: glibc: malloc]' mapping.
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanell@linaro.org>
> ---
> elf/Makefile | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/elf/Makefile b/elf/Makefile
> index d267317a81..7d91c7f171 100644
> --- a/elf/Makefile
> +++ b/elf/Makefile
> @@ -3564,7 +3564,11 @@ $(objpfx)tst-dlclose-lazy.out: \
> $(objpfx)tst-decorate-maps: $(shared-thread-library)
>
> tst-decorate-maps-TUNABLES += \
> - glibc.malloc.arena_max=8:glibc.malloc.mmap_threshold=1024:glibc.mem.decorate_maps=1
> + glibc.malloc.arena_max=8 \
> + glibc.malloc.hugetlb=0 \
> + glibc.malloc.mmap_threshold=1024 \
> + glibc.mem.decorate_maps=1 \
> + # tst-decorate-maps-TUNABLES
> tst-decorate-maps-ARGS = 8
>
> LDFLAGS-tst-non-directory-mod.so = -Wl,-soname,tst-non-directory-mod.so
>
> base-commit: 96dd8afdfa5bae1f22d75277f002bbdfaa8cb7ec
More information about the Libc-alpha
mailing list