diff options
author | daan <daanl@outlook.com> | 2020-01-30 06:25:42 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2020-01-30 06:25:42 -0800 |
commit | a7c69ccbeaa92fe792fe4ff6c11e79076ed3aa5d (patch) | |
tree | df0e3f71ed229029611096fe0cb9dd0667c176be /include/mimalloc-internal.h | |
parent | 9c166d88f0ca6ce5322856e58ac730972ca5404f (diff) |
fix stat accounting of segments with huge blocks
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 6fca06b..f18e459 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -81,6 +81,7 @@ void _mi_segment_page_abandon(mi_page_t* page, mi_segments_tld_t* tld); bool _mi_segment_try_reclaim_abandoned( mi_heap_t* heap, bool try_all, mi_segments_tld_t* tld); void _mi_segment_thread_collect(mi_segments_tld_t* tld); uint8_t* _mi_segment_page_start(const mi_segment_t* segment, const mi_page_t* page, size_t block_size, size_t* page_size, size_t* pre_size); // page start for any page +void _mi_segment_huge_page_free(mi_segment_t* segment, mi_page_t* page, mi_block_t* block); // "page.c" void* _mi_malloc_generic(mi_heap_t* heap, size_t size) mi_attr_noexcept mi_attr_malloc; |