mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Darwin malloc_size override support proposal.
Darwin has similar api than Linux/FreeBSD's malloc_usable_size.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
TEST_BEGIN(test_zero_alloc) {
|
||||
void *res = malloc(0);
|
||||
assert(res);
|
||||
size_t usable = malloc_usable_size(res);
|
||||
size_t usable = TEST_MALLOC_SIZE(res);
|
||||
assert(usable > 0);
|
||||
free(res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user