|
6 | 6 | * public APIs to be prefixed. This makes it possible, with some care, to use |
7 | 7 | * multiple allocators simultaneously. |
8 | 8 | */ |
9 | | -/* #undef JEMALLOC_PREFIX */ |
10 | | -/* #undef JEMALLOC_CPREFIX */ |
| 9 | +#define JEMALLOC_PREFIX "je_" |
| 10 | +#define JEMALLOC_CPREFIX "JE_" |
11 | 11 |
|
12 | 12 | /* |
13 | 13 | * Define overrides for non-standard allocator-related functions if they are |
14 | 14 | * present on the system. |
15 | 15 | */ |
16 | | -#if !defined(USE_MUSL) |
17 | | - #define JEMALLOC_OVERRIDE___LIBC_CALLOC |
18 | | - #define JEMALLOC_OVERRIDE___LIBC_FREE |
19 | | - #define JEMALLOC_OVERRIDE___LIBC_MALLOC |
20 | | - #define JEMALLOC_OVERRIDE___LIBC_MEMALIGN |
21 | | - #define JEMALLOC_OVERRIDE___LIBC_REALLOC |
22 | | - #define JEMALLOC_OVERRIDE___LIBC_VALLOC |
23 | | -#endif |
| 16 | +/* #undef JEMALLOC_OVERRIDE___LIBC_CALLOC */ |
| 17 | +/* #undef JEMALLOC_OVERRIDE___LIBC_FREE */ |
| 18 | +/* #undef JEMALLOC_OVERRIDE___LIBC_MALLOC */ |
| 19 | +/* #undef JEMALLOC_OVERRIDE___LIBC_MEMALIGN */ |
| 20 | +/* #undef JEMALLOC_OVERRIDE___LIBC_REALLOC */ |
| 21 | +/* #undef JEMALLOC_OVERRIDE___LIBC_VALLOC */ |
24 | 22 | /* #undef JEMALLOC_OVERRIDE___POSIX_MEMALIGN */ |
25 | 23 |
|
26 | 24 | /* |
|
129 | 127 | * Among other things, it must be possible to initialize a mutex without |
130 | 128 | * triggering allocation in order for threaded allocation to be safe. |
131 | 129 | */ |
132 | | -#define JEMALLOC_THREADED_INIT |
| 130 | +/* #undef JEMALLOC_THREADED_INIT */ |
133 | 131 |
|
134 | 132 | /* |
135 | 133 | * Defined if the pthreads implementation defines |
|
139 | 137 | /* #undef JEMALLOC_MUTEX_INIT_CB */ |
140 | 138 |
|
141 | 139 | /* Non-empty if the tls_model attribute is supported. */ |
142 | | -#define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) |
| 140 | +// #define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) |
| 141 | +#define JEMALLOC_TLS_MODEL |
143 | 142 |
|
144 | 143 | /* |
145 | 144 | * JEMALLOC_DEBUG enables assertions and other sanity checks, and disables |
|
374 | 373 | #define LG_SIZEOF_INTMAX_T 3 |
375 | 374 |
|
376 | 375 | /* glibc malloc hooks (__malloc_hook, __realloc_hook, __free_hook). */ |
377 | | -#define JEMALLOC_GLIBC_MALLOC_HOOK |
| 376 | +/* #undef JEMALLOC_GLIBC_MALLOC_HOOK */ |
378 | 377 |
|
379 | 378 | /* glibc memalign hook. */ |
380 | | -#define JEMALLOC_GLIBC_MEMALIGN_HOOK |
| 379 | +/* #undef JEMALLOC_GLIBC_MEMALIGN_HOOK */ |
381 | 380 |
|
382 | 381 | /* pthread support */ |
383 | 382 | #define JEMALLOC_HAVE_PTHREAD |
|
397 | 396 | /* |
398 | 397 | * If defined, all the features necessary for background threads are present. |
399 | 398 | */ |
400 | | -#define JEMALLOC_BACKGROUND_THREAD |
| 399 | +/* #undef JEMALLOC_BACKGROUND_THREAD */ |
401 | 400 |
|
402 | 401 | /* |
403 | 402 | * If defined, jemalloc symbols are not exported (doesn't work when |
|
409 | 408 | #define JEMALLOC_CONFIG_MALLOC_CONF "@JEMALLOC_CONFIG_MALLOC_CONF@" |
410 | 409 |
|
411 | 410 | /* If defined, jemalloc takes the malloc/free/etc. symbol names. */ |
412 | | -#define JEMALLOC_IS_MALLOC |
| 411 | +/* #undef JEMALLOC_IS_MALLOC */ |
413 | 412 |
|
414 | 413 | /* |
415 | 414 | * Defined if strerror_r returns char * if _GNU_SOURCE is defined. |
|
0 commit comments