mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
use memzero_aligned
This commit is contained in:
parent
a655c28b66
commit
4a52b7e4c4
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ static mi_decl_noinline void* mi_heap_malloc_zero_aligned_at_fallback(mi_heap_t*
|
||||||
// for the tracker, on huge aligned allocations only from the start of the large block is defined
|
// for the tracker, on huge aligned allocations only from the start of the large block is defined
|
||||||
mi_track_mem_undefined(aligned_p, size);
|
mi_track_mem_undefined(aligned_p, size);
|
||||||
if (zero) {
|
if (zero) {
|
||||||
_mi_memzero(aligned_p, mi_usable_size(aligned_p));
|
_mi_memzero_aligned(aligned_p, mi_usable_size(aligned_p));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue