Move filling with MI_DEBUG_UNINIT out of _mi_page_malloc() into allocation functions

This mirrors how zero filling is handled.
This commit is contained in:
Frank Richter 2021-12-19 20:41:21 +01:00
parent 1621b461c6
commit 9ef4e87743
3 changed files with 24 additions and 3 deletions

View file

@ -148,6 +148,10 @@ void _mi_block_zero_init(const mi_page_t* page, void* p, size_t size);
bool _mi_page_is_valid(mi_page_t* page);
#endif
#if MI_DEBUG >= 2
void _mi_debug_uninit_fill(void* p, size_t size);
#endif
// ------------------------------------------------------
// Branches