forked from bartvdbraak/blender
Guardedalloc: Don't use aligned blocks to calculate memory sloppyness
Aligned memory is allocated with memalign() and malloc_usable_size() can't be used to measure this block.
This commit is contained in:
parent
42e427905c
commit
6298632bfa
@ -711,7 +711,7 @@ void MEM_guarded_printmemlist_stats(void)
|
|||||||
totpb++;
|
totpb++;
|
||||||
pb++;
|
pb++;
|
||||||
|
|
||||||
if (!membl->mmap) {
|
if (!membl->mmap && membl->alignment == 0) {
|
||||||
mem_in_use_slop += (sizeof(MemHead) + sizeof(MemTail) +
|
mem_in_use_slop += (sizeof(MemHead) + sizeof(MemTail) +
|
||||||
malloc_usable_size((void *)membl)) - membl->len;
|
malloc_usable_size((void *)membl)) - membl->len;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user