[Concept,24/35] malloc: Increase the mcheck registry size

Message ID 20251210000737.180797-25-sjg@u-boot.org
State New
Headers
Series malloc: Add heap debugging commands and mcheck caller tracking |

Commit Message

Simon Glass Dec. 10, 2025, 12:07 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

The mcheck registry tracks concurrent allocations for pedantic checking.
The current size of 6608 entries is insufficient when running the full
pytest suite, causing registry overflow warnings.

Increase REGISTRY_SZ to 12000 to handle the full test suite.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 common/mcheck_core.inc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/common/mcheck_core.inc.h b/common/mcheck_core.inc.h
index 7caa9ac8dff..2839027564e 100644
--- a/common/mcheck_core.inc.h
+++ b/common/mcheck_core.inc.h
@@ -70,8 +70,8 @@ 
 #define FREEFLOOD	((char)0xf5)
 #define PADDINGFLOOD	((char)0x58)
 
-// my normal run demands 4427-6449 chunks:
-#define REGISTRY_SZ	6608
+// Full test suite can exceed 10000 concurrent allocations
+#define REGISTRY_SZ	12000
 #define CANARY_DEPTH	2
 
 // avoid problems with BSS at early stage: