Ticket #45092: memalign.diff
File memalign.diff, 798 bytes (added by c9s (Yo-An Lin), 10 years ago) |
---|
-
src/jemalloc.c
je_valloc(size_t size) 1312 1312 #define is_malloc_(a) malloc_is_ ## a 1313 1313 #define is_malloc(a) is_malloc_(a) 1314 1314 1315 #if ((is_malloc(je_malloc) == 1) && defined(__GLIBC__) && !defined(__UCLIBC__))1316 1315 /* 1317 1316 * glibc provides the RTLD_DEEPBIND flag for dlopen which can make it possible 1318 1317 * to inconsistently reference libc's malloc(3)-compatible functions … … je_valloc(size_t size) 1325 1324 JEMALLOC_EXPORT void (* __free_hook)(void *ptr) = je_free; 1326 1325 JEMALLOC_EXPORT void *(* __malloc_hook)(size_t size) = je_malloc; 1327 1326 JEMALLOC_EXPORT void *(* __realloc_hook)(void *ptr, size_t size) = je_realloc; 1327 #ifdef JEMALLOC_OVERRIDE_MEMALIGN 1328 1328 JEMALLOC_EXPORT void *(* __memalign_hook)(size_t alignment, size_t size) = 1329 1329 je_memalign; 1330 1330 #endif