mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-02 02:04:20 +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
|
|
@ -132,6 +132,11 @@ static const bool config_debug =
|
|||
#define MEXP 19937
|
||||
#include "test/SFMT.h"
|
||||
|
||||
#ifndef JEMALLOC_HAVE_MALLOC_SIZE
|
||||
#define TEST_MALLOC_SIZE malloc_usable_size
|
||||
#else
|
||||
#define TEST_MALLOC_SIZE malloc_size
|
||||
#endif
|
||||
/******************************************************************************/
|
||||
/*
|
||||
* Define always-enabled assertion macros, so that test assertions execute even
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue