Darwin malloc_size override support proposal.

Darwin has similar api than Linux/FreeBSD's malloc_usable_size.
This commit is contained in:
David CARLIER
2021-02-17 20:40:11 +00:00
committed by Qi Wang
parent ab0f1604b4
commit cf9724531a
13 changed files with 53 additions and 19 deletions

View File

@@ -101,7 +101,7 @@ TEST_BEGIN(test_alignment_and_size) {
"size=%zu (%#zx): %s",
alignment, size, size, buf);
}
total += malloc_usable_size(ps[i]);
total += TEST_MALLOC_SIZE(ps[i]);
if (total >= (MAXALIGN << 1)) {
break;
}