mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-02 16:40:29 +03:00
Darwin malloc_size override support proposal.
Darwin has similar api than Linux/FreeBSD's malloc_usable_size.
This commit is contained in:
parent
ab0f1604b4
commit
cf9724531a
13 changed files with 53 additions and 19 deletions
|
|
@ -43,7 +43,7 @@ test_combinations(szind_t ind, size_t sizes_array[N_PTRS],
|
|||
int flags = flags_array[i];
|
||||
void *p = mallocx(sz, flags);
|
||||
assert_ptr_not_null(p, "malloc() failed");
|
||||
assert(malloc_usable_size(p) == sz_index2size(ind));
|
||||
assert(TEST_MALLOC_SIZE(p) == sz_index2size(ind));
|
||||
ptrs[i] = p;
|
||||
live_req_sum += sz;
|
||||
live_count++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue