[PATCH] elf: Fix elf/tst-decorate-maps on aarch64 after 321e1fc73f

Adhemerval Zanella adhemerval.zanella@linaro.org
Wed Dec 17 20:55:18 GMT 2025


The malloc size might be too low to trigger the mmap call on aarch64
with mTHP.

Checked on aarch64-linux-gnu.
---
 elf/tst-decorate-maps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];
   {
-- 
2.43.0



More information about the Libc-alpha mailing list