summaryrefslogtreecommitdiff
path: root/include/mimalloc-types.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <anton@korobeynikov.info>2020-11-02 00:14:02 +0300
committerAnton Korobeynikov <anton@korobeynikov.info>2020-11-02 00:14:02 +0300
commit39bcf8a6b0af0c07379aea9c1a2330db49d3d5a0 (patch)
treeb1459fd68bc25009a2be4839a99a097d65fc1395 /include/mimalloc-types.h
parentca13e9cd59aea912f1eae6b6c5dee5e79dd11b2e (diff)
Honour MI_STAT in couple more places.
Diffstat (limited to 'include/mimalloc-types.h')
-rw-r--r--include/mimalloc-types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h
index 8ffcd2f..b94bbf6 100644
--- a/include/mimalloc-types.h
+++ b/include/mimalloc-types.h
@@ -447,6 +447,7 @@ void _mi_stat_counter_increase(mi_stat_counter_t* stat, size_t amount);
#define mi_stat_counter_increase(stat,amount) (void)0
#endif
+#define mi_heap_stat_counter_increase(heap,stat,amount) mi_stat_counter_increase( (heap)->tld->stats.stat, amount)
#define mi_heap_stat_increase(heap,stat,amount) mi_stat_increase( (heap)->tld->stats.stat, amount)
#define mi_heap_stat_decrease(heap,stat,amount) mi_stat_decrease( (heap)->tld->stats.stat, amount)