Removal of dlmalloc?
Sascha Hauer
s.hauer at pengutronix.de
Mon Mar 31 00:22:40 PDT 2025
On Thu, Mar 27, 2025 at 12:51:31PM +0100, Ahmad Fatoum wrote:
> Hi,
>
> We have a TLSF implemenation in barebox for >= 13 years now and it has
> more features than dlmalloc like multiple pools and KASAN integration.
>
> I think it's thus time to retire the dlmalloc we inherited from U-Boot.
>
> Unfortunately, TLSF was not the default in the config, even though the
> most common configs select it. I'd thus suggest we remove dlmalloc
> altogether after v2025.06.0 is tagged.
>
> Thoughts? Objections?
No objections from my side.
The only reason for me to enable dlmalloc from time to time was that I
suspected some bug in the allocator, but it never actually turned out to
be a bug in the allocator. Now with Kasan we have far better memory
debugging facilities than back in those days, so yes, I think it's time
to schedule removal of dlmalloc.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list