[PATCH] common: make TLSF the default allocator

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Mar 27 04:37:53 PDT 2025


Going by the most used defconfigs (multi_*_defconfig), TLSF is the most
used allocator and it supports features absent in dlmalloc like
multiple pools (used on ARMv7-R) and has KASAN integration, so there's
even less reason to use dlmalloc nowadays.

In preparation for possible removal of dlmalloc in future, switch the
default away from dlmalloc.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 common/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/Kconfig b/common/Kconfig
index ddc76b2033b2..f0cd2f0729a4 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -312,6 +312,7 @@ config EXPERIMENTAL
 
 choice
 	prompt "malloc implementation"
+	default MALLOC_TLSF
 
 config MALLOC_DLMALLOC
 	bool "dlmalloc"
-- 
2.39.5




More information about the barebox mailing list