mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
merge from dev
This commit is contained in:
commit
8a3865660e
1 changed files with 2 additions and 2 deletions
|
@ -672,9 +672,9 @@ mi_decl_restrict void* _mi_heap_malloc_guarded(mi_heap_t* heap, size_t size, boo
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
if (!mi_heap_is_initialized(heap)) { heap = mi_prim_get_default_heap(); }
|
if (!mi_heap_is_initialized(heap)) { heap = mi_prim_get_default_heap(); }
|
||||||
#if MI_STAT>1
|
#if MI_STAT>1
|
||||||
mi_heap_stat_increase(heap, malloc, mi_usable_size(p));
|
mi_heap_stat_increase(heap, malloc_requested, mi_usable_size(p));
|
||||||
#endif
|
#endif
|
||||||
mi_heap_stat_counter_increase(heap, guarded_alloc_count, 1);
|
mi_heap_stat_counter_increase(heap, malloc_guarded_count, 1);
|
||||||
}
|
}
|
||||||
#if MI_DEBUG>3
|
#if MI_DEBUG>3
|
||||||
if (p != NULL && zero) {
|
if (p != NULL && zero) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue