mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
add heap walk test
This commit is contained in:
parent
5c7ada4b20
commit
e18a8cd72e
3 changed files with 209 additions and 6 deletions
|
@ -256,6 +256,7 @@ typedef struct mi_heap_area_s {
|
|||
size_t committed; // current available bytes for this area
|
||||
size_t used; // number of allocated blocks
|
||||
size_t block_size; // size in bytes of each block
|
||||
size_t full_block_size; // size in bytes of a full block including padding and metadata.
|
||||
} mi_heap_area_t;
|
||||
|
||||
typedef bool (mi_cdecl mi_block_visit_fun)(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue