mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-10 07:47:26 +03:00
Don't rely on OSX SDK malloc/malloc.h for malloc_zone struct definitions
The SDK jemalloc is built against might be not be the latest for various reasons, but the resulting binary ought to work on newer versions of OSX. In order to ensure this, we need the fullest definitions possible, so copy what we need from the latest version of malloc/malloc.h available on opensource.apple.com.
This commit is contained in:
parent
9389335b86
commit
c68bb41793
4 changed files with 86 additions and 69 deletions
|
|
@ -158,7 +158,6 @@ static const bool config_cache_oblivious =
|
|||
#include <mach/mach_error.h>
|
||||
#include <mach/mach_init.h>
|
||||
#include <mach/vm_map.h>
|
||||
#include <malloc/malloc.h>
|
||||
#endif
|
||||
|
||||
#include "jemalloc/internal/ph.h"
|
||||
|
|
|
|||
|
|
@ -239,7 +239,6 @@
|
|||
* Darwin (OS X) uses zones to work around Mach-O symbol override shortcomings.
|
||||
*/
|
||||
#undef JEMALLOC_ZONE
|
||||
#undef JEMALLOC_ZONE_VERSION
|
||||
|
||||
/*
|
||||
* Methods for determining whether the OS overcommits.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue