set extra debug padding per-heap

This commit is contained in:
daan 2020-04-20 17:09:28 -07:00
parent ae608cda2f
commit 9ebb94fe17
10 changed files with 65 additions and 49 deletions

View file

@ -334,6 +334,7 @@ struct mi_heap_s {
size_t page_count; // total number of pages in the `pages` queues.
size_t page_retired_min; // smallest retired index (retired pages are fully free, but still in the page queues)
size_t page_retired_max; // largest retired index into the `pages` array.
size_t extra_padding; // extra padding bytes in each heap block to better detect heap block overflows
mi_heap_t* next; // list of heaps per thread
bool no_reclaim; // `true` if this heap should not reclaim abandoned pages
};