]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Remove unused tcache code from unsorted bin scan
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 17 Dec 2025 16:16:23 +0000 (16:16 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 6 Feb 2026 18:20:17 +0000 (18:20 +0000)
commitea4c36c36bc1fcdc4683127edd2312cbdf540a45
treebe97904ada1868cb111f870e0db8f9da8bc1fedb
parent672aec0de053aee13c3d64c75c46c5666da09ff3
malloc: Remove unused tcache code from unsorted bin scan

Now that fastbins have been removed, there is no need to add chunks
to tcache during an unsorted scan.  Small blocks can only be added
to unsorted as a result of a remainder chunk split off a larger block,
so there is no point in checking for additional chunks to place in
tcache.  The last remainder is checked first, and will be used if it
is large enough or an exact fit.  The unsorted bin scan becomes simpler
as a result.  Remove the tcache_unsorted_limit tunable and manual entries.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
elf/dl-tunables.list
elf/tst-rtld-list-tunables.exp
malloc/arena.c
malloc/malloc.c
manual/probes.texi
manual/tunables.texi