diff options
author | DJ Delorie <dj@redhat.com> | 2023-03-29 00:18:40 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2023-03-29 16:36:03 -0400 |
commit | 24cdd6c71debfd10a9f7cb217fe2a2c4c486ed6f (patch) | |
tree | 67fb2733a20d3358f82f92f3e976ab1ec8d09be9 /argp | |
parent | 998fba01b254be6c1848da4900454a3bc309cb69 (diff) | |
download | glibc-24cdd6c71debfd10a9f7cb217fe2a2c4c486ed6f.tar glibc-24cdd6c71debfd10a9f7cb217fe2a2c4c486ed6f.tar.gz glibc-24cdd6c71debfd10a9f7cb217fe2a2c4c486ed6f.tar.bz2 glibc-24cdd6c71debfd10a9f7cb217fe2a2c4c486ed6f.zip |
memalign: Support scanning for aligned chunks.
This patch adds a chunk scanning algorithm to the _int_memalign code
path that reduces heap fragmentation by reusing already aligned chunks
instead of always looking for chunks of larger sizes and splitting
them. The tcache macros are extended to allow removing a chunk from
the middle of the list.
The goal is to fix the pathological use cases where heaps grow
continuously in workloads that are heavy users of memalign.
Note that tst-memalign-2 checks for tcache operation, which
malloc-check bypasses.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'argp')
0 files changed, 0 insertions, 0 deletions