[PATCH] malloc: Remove unused tcache code from unsorted bin scan

DJ Delorie dj@redhat.com
Thu Dec 18 16:38:53 GMT 2025


Wilco Dijkstra <Wilco.Dijkstra@arm.com> writes:
> 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,

My memory said "long string of frees" but the comments in malloc.c no
longer reflect reality.  At least, I couldn't find where anything in the
free chain uses the unsorted bucket like it used to.

How close are we to removing the unsorted bin completely?



More information about the Libc-alpha mailing list