only allow page_reclaim_on_free for small block pages

This commit is contained in:
Daan Leijen 2025-02-04 12:26:21 -08:00
parent 11f0c9d209
commit 59eeeadc34
3 changed files with 7 additions and 6 deletions

View file

@ -433,7 +433,7 @@ static inline bool mi_heap_is_backing(const mi_heap_t* heap) {
return (heap->tld->heap_backing == heap);
}
static inline bool mi_heap_is_initialized(mi_heap_t* heap) {
static inline bool mi_heap_is_initialized(const mi_heap_t* heap) {
mi_assert_internal(heap != NULL);
return (heap != NULL && heap != &_mi_heap_empty);
}