From: Adhemerval Zanella Date: Wed, 17 Dec 2025 20:55:18 +0000 (-0300) Subject: elf: Fix elf/tst-decorate-maps on aarch64 after 321e1fc73f X-Git-Tag: glibc-2.43~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8561d15529d653fe4460c084dbd2580772bb1ee;p=thirdparty%2Fglibc.git elf: Fix elf/tst-decorate-maps on aarch64 after 321e1fc73f The intention of the call "xmalloc(256 * 1024)" in tst-decorate-maps is to force malloc() to fall back to using mmap() since such an amount won't be available from the main heap. Post 321e1fc73f, on aarch64, the heap gets extended by default by at least 2MB, thus the aforementioned call may get satisfied on the main heap itself. Thus, increase the amount of memory requested to force the mmap() path again. Checked on aarch64-linux-gnu. --- diff --git a/elf/tst-decorate-maps.c b/elf/tst-decorate-maps.c index 715fdf5209..c20d059503 100644 --- a/elf/tst-decorate-maps.c +++ b/elf/tst-decorate-maps.c @@ -109,7 +109,7 @@ do_test_threads (bool set_guard) xpthread_barrier_init (&b, NULL, num_threads + 1); /* Issue a large malloc to trigger a mmap call. */ - void *p = xmalloc (256 * 1024); + void *p = xmalloc (2 * 1024 * 1024); pthread_t thr[num_threads]; {