[PATCH v2 0/3] [RFC] malloc: tcache improvements

Cupertino Miranda cupertino.miranda@oracle.com
Fri Dec 6 14:09:18 GMT 2024


Hi everyone,

This is v2 of my original patch set.
Patch number 3 is new and fixes a issue that I think is not specific to
this patch series and is likely an existing problem in glibc.
Please let know if you would like it submit independently from this
series.

Best regards,
Cupertino

Changes from v1:
 - Typo in the assigment to mp_.tcache_bins in do_set_cache_max
   function. Was setting it to MAX_TCACHE_SIZE instead of
   TCACHE_MAX_BINS.
 - Fixed testsuite regressions.

Cupertino Miranda (3):
  malloc: add tcache support for large chunk caching
  malloc: add testing for large tcache support.
  malloc: limit when to allow to free chunks to tcache

 Rules                 |  19 ++
 elf/dl-tunables.list  |   3 +
 malloc/Makefile       |  15 ++
 malloc/arena.c        |   2 +
 malloc/malloc-check.c |   2 +-
 malloc/malloc.c       | 401 +++++++++++++++++++++++++++++++++++-------
 6 files changed, 374 insertions(+), 68 deletions(-)

-- 
2.39.5



More information about the Libc-alpha mailing list