diff options
| author | Florian Weimer <fweimer@redhat.com> | 2019-08-28 12:01:48 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2019-08-28 12:01:48 +0200 |
| commit | 35ffd20dbd76d3cb6b478c7a69bb40d8c827ed81 (patch) | |
| tree | 448240f1180109e25feed63b50fddb464a441fe0 /ChangeLog | |
| parent | ffced383cd7e092a1c6e50ca50f692d2fe2a7dbe (diff) | |
| download | glibc-35ffd20dbd76d3cb6b478c7a69bb40d8c827ed81.tar.xz glibc-35ffd20dbd76d3cb6b478c7a69bb40d8c827ed81.zip | |
misc: Use allocate_once in getmntent
Both the buffer and struct mntent are now allocated on the heap.
This results in a slight reduction of RSS usage.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2019-08-28 Florian Weimer <fweimer@redhat.com> + * misc/mntent.c (struct mntent_buffer): Define. + (mntent_buffer): Adjust type to void *. + (allocate): Adjust for allocate_once. + (deallocate): New function. + (getmntent): Call allocate_once. + +2019-08-28 Florian Weimer <fweimer@redhat.com> + nptl: Move pthread_attr_setdetachstate implementation into libc. * nptl/Makefile (routines): Add pthread_attr_setdetachstate. (libpthread-routines): Remove pthread_attr_setdetachstate. |
