* [PATCH] common: make TLSF the default allocator
@ 2025-03-27 11:37 Ahmad Fatoum
2025-03-31 7:29 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-03-27 11:37 UTC (permalink / raw)
To: barebox; +Cc: Jules Maselbas, Ahmad Fatoum
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-31 7:30 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:37 [PATCH] common: make TLSF the default allocator Ahmad Fatoum
2025-03-31 7:29 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox