mbox series

[v2,0/5] malloc: TCACHE improvement for free and calloc

Message ID 20240826025534.472882-1-wangyang.guo@intel.com
Headers show
Series malloc: TCACHE improvement for free and calloc | expand

Message

Guo, Wangyang Aug. 26, 2024, 2:55 a.m. UTC
This series aims to improve TCACHE performance in memory allocator:
simplify TCACHE code path in free() and add TCACHE support for calloc().

---
Changes in v2:
- _int_free_check() should be put outside of USE_TCACHE.
- Merge tst-safe-linking fix into commit#5 to make sure CI check pass.
- Link to v1: https://sourceware.org/pipermail/libc-alpha/2024-August/159357.html

Wangyang Guo (5):
  malloc: Split _int_free() into 3 sub functions
  malloc: Avoid func call for tcache quick path in free()
  malloc: Arena is not needed for tcache path in free()
  benchtests: Add calloc function test to bench-malloc-thread
  malloc: Add tcache path for calloc

 benchtests/bench-malloc-thread.c | 114 +++++++++-----
 malloc/malloc.c                  | 249 ++++++++++++++++++++-----------
 malloc/tst-safe-linking.c        |  81 ++++++++--
 3 files changed, 302 insertions(+), 142 deletions(-)