mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-09-18 12:14:47 +03:00
set extra debug padding per-heap
This commit is contained in:
parent
ae608cda2f
commit
9ebb94fe17
10 changed files with 65 additions and 49 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue