mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Removal of dlmalloc?
@ 2025-03-27 11:51 Ahmad Fatoum
  2025-03-31  7:22 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-03-27 11:51 UTC (permalink / raw)
  To: BAREBOX

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?

Cheers,
Ahmad



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Removal of dlmalloc?
  2025-03-27 11:51 Removal of dlmalloc? Ahmad Fatoum
@ 2025-03-31  7:22 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-03-31  7:22 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: BAREBOX

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 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-31  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-27 11:51 Removal of dlmalloc? Ahmad Fatoum
2025-03-31  7:22 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox