mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
include psapi.h instead of defining PROCESS_MEMORY_COUNTERS on windows
This commit is contained in:
parent
465eb81d30
commit
b3f3a0de3b
2 changed files with 3 additions and 13 deletions
|
@ -311,11 +311,13 @@ void _mi_heap_destroy_pages(mi_heap_t* heap) {
|
|||
mi_heap_reset_pages(heap);
|
||||
}
|
||||
|
||||
#if MI_TRACK_HEAP_DESTROY
|
||||
static bool mi_cdecl mi_heap_track_block_free(const mi_heap_t* heap, const mi_heap_area_t* area, void* block, size_t block_size, void* arg) {
|
||||
MI_UNUSED(heap); MI_UNUSED(area); MI_UNUSED(arg); MI_UNUSED(block_size);
|
||||
mi_track_free_size(block,mi_usable_size(block));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void mi_heap_destroy(mi_heap_t* heap) {
|
||||
mi_assert(heap != NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue