summaryrefslogtreecommitdiff
path: root/src/heap.c
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2019-08-15 11:49:56 -0700
committerdaan <daanl@outlook.com>2019-08-15 11:49:56 -0700
commitf2bafbc57f0604c74bf47fbd105d16a7bb951bcc (patch)
treedf468ad02cde2933343defcea99d9729a7c16b0d /src/heap.c
parentbbd81bbbd1bbe1de30b09dcfc6da22f31c4f5768 (diff)
wip: new segment allocation
Diffstat (limited to 'src/heap.c')
-rw-r--r--src/heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heap.c b/src/heap.c
index 7b5d7a0..6908473 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -255,7 +255,7 @@ static bool _mi_heap_page_destroy(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_
}
#if (MI_STAT>1)
size_t inuse = page->used - page->thread_freed;
- if (page->block_size <= MI_MEDIUM_SIZE_MAX) {
+ if (page->block_size <= MI_LARGE_SIZE_MAX) {
mi_heap_stat_decrease(heap,normal[_mi_bin(page->block_size)], inuse);
}
mi_heap_stat_decrease(heap,malloc, page->block_size * inuse); // todo: off for aligned blocks...