summaryrefslogtreecommitdiff
path: root/include/mimalloc-internal.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2019-08-08 11:36:13 -0700
committerdaan <daanl@outlook.com>2019-08-08 11:36:13 -0700
commit55778d2fe41fe78dea4c3da3e89c5b7fd15c624a (patch)
tree173599fcc7fd5af2c37f27373aaed56129aae80e /include/mimalloc-internal.h
parent56778fe7d210ffbb95e830e2bbcba04eb84351af (diff)
improved stats
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r--include/mimalloc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h
index e261dba..cc487a2 100644
--- a/include/mimalloc-internal.h
+++ b/include/mimalloc-internal.h
@@ -307,7 +307,7 @@ static inline bool mi_page_all_used(mi_page_t* page) {
static inline bool mi_page_mostly_used(const mi_page_t* page) {
if (page==NULL) return true;
uint16_t frac = page->reserved / 8U;
- return (page->reserved - page->used + page->thread_freed < frac);
+ return (page->reserved - page->used + page->thread_freed <= frac);
}
static inline mi_page_queue_t* mi_page_queue(const mi_heap_t* heap, size_t size) {