This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Linux: Use mmap instead of malloc in dirent/tst-getdents64
- From: Rafal Luzynski <digitalfreak at lingonborough dot com>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Date: Sat, 29 Jun 2019 21:00:50 +0200 (CEST)
- Subject: Re: [PATCH] Linux: Use mmap instead of malloc in dirent/tst-getdents64
- References: <87a7e2p01f.fsf@oldenburg2.str.redhat.com>
28.06.2019 10:49 Florian Weimer <fweimer@redhat.com> wrote:
>
> malloc dirties the entire allocated memory region due to M_PERTURB
> in the test harness.
>
> 2019-06-28 Florian Weimer <fweimer@redhat.com>
>
> * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
> Use mmap instead of malloc. malloc with M_PERTURB writes to the
> entire allocated memory range.
Thank you, Florian. I would like to confirm that now my make check
runs correctly.
Regards,
Rafal