]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Fix MAX_TCACHE_SMALL_SIZE
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 17 Jul 2025 14:31:06 +0000 (14:31 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Sat, 2 Aug 2025 14:16:24 +0000 (14:16 +0000)
commitad4caba4146583fc543cd434221dec7113c03e09
treea2e96101c23d717fd5e80d2c951d6422d4ea061b
parent7107bebf19286f42dcb0a97581137a5893c16206
malloc: Fix MAX_TCACHE_SMALL_SIZE

MAX_TCACHE_SMALL_SIZE should use chunk size since it is used after
checked_request2size.  Increase limit of tcache_max_bytes by 1 since all
comparisons use '<'.  As a result, the last tcache entry is now used as
expected.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c