1*8e33eff8Schristos /* include/jemalloc/internal/jemalloc_internal_defs.h. Generated from jemalloc_internal_defs.h.in by configure. */ 2*8e33eff8Schristos #ifndef JEMALLOC_INTERNAL_DEFS_H_ 3*8e33eff8Schristos #define JEMALLOC_INTERNAL_DEFS_H_ 4*8e33eff8Schristos /* 5*8e33eff8Schristos * If JEMALLOC_PREFIX is defined via --with-jemalloc-prefix, it will cause all 6*8e33eff8Schristos * public APIs to be prefixed. This makes it possible, with some care, to use 7*8e33eff8Schristos * multiple allocators simultaneously. 8*8e33eff8Schristos */ 9*8e33eff8Schristos /* #undef JEMALLOC_PREFIX */ 10*8e33eff8Schristos /* #undef JEMALLOC_CPREFIX */ 11*8e33eff8Schristos 12*8e33eff8Schristos /* 13*8e33eff8Schristos * Define overrides for non-standard allocator-related functions if they are 14*8e33eff8Schristos * present on the system. 15*8e33eff8Schristos */ 16*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_CALLOC */ 17*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_FREE */ 18*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_MALLOC */ 19*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_MEMALIGN */ 20*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_REALLOC */ 21*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___LIBC_VALLOC */ 22*8e33eff8Schristos /* #undef JEMALLOC_OVERRIDE___POSIX_MEMALIGN */ 23*8e33eff8Schristos 24*8e33eff8Schristos /* 25*8e33eff8Schristos * JEMALLOC_PRIVATE_NAMESPACE is used as a prefix for all library-private APIs. 26*8e33eff8Schristos * For shared libraries, symbol visibility mechanisms prevent these symbols 27*8e33eff8Schristos * from being exported, but for static libraries, naming collisions are a real 28*8e33eff8Schristos * possibility. 29*8e33eff8Schristos */ 30*8e33eff8Schristos #define JEMALLOC_PRIVATE_NAMESPACE je_ 31*8e33eff8Schristos 32*8e33eff8Schristos /* 33*8e33eff8Schristos * Hyper-threaded CPUs may need a special instruction inside spin loops in 34*8e33eff8Schristos * order to yield to another virtual CPU. 35*8e33eff8Schristos */ 36*8e33eff8Schristos #ifdef __x86_64__ 37*8e33eff8Schristos /* XXX: I will take care of this later */ 38*8e33eff8Schristos #define CPU_SPINWAIT __asm__ volatile("pause") 39*8e33eff8Schristos /* 1 if CPU_SPINWAIT is defined, 0 otherwise. */ 40*8e33eff8Schristos #define HAVE_CPU_SPINWAIT 1 41*8e33eff8Schristos #endif 42*8e33eff8Schristos 43*8e33eff8Schristos /* 44*8e33eff8Schristos * Number of significant bits in virtual addresses. This may be less than the 45*8e33eff8Schristos * total number of bits in a pointer, e.g. on x64, for which the uppermost 16 46*8e33eff8Schristos * bits are the same as bit 47. 47*8e33eff8Schristos */ 48*8e33eff8Schristos #ifdef _LP64 49*8e33eff8Schristos /* XXX: I will take care of this later */ 50*8e33eff8Schristos # ifdef __alpha__ 51*8e33eff8Schristos /* 52*8e33eff8Schristos * Bit 42 indicates kernel space. Bits 42--63 must be same. For user space, 53*8e33eff8Schristos * VA can be regarded to have 43 significant bits with sign-extension to 54*8e33eff8Schristos * 64 bits. ``Negative'' addresses are not used in this case. Alternatively, 55*8e33eff8Schristos * VA can also be regarded to have 42 significant bits with zero-extension. 56*8e33eff8Schristos * See rtree_leaf_elm_bits_extent_get() in rtree.h for more details. 57*8e33eff8Schristos */ 58*8e33eff8Schristos # define LG_VADDR 43 59*8e33eff8Schristos # else 60*8e33eff8Schristos # define LG_VADDR 48 61*8e33eff8Schristos # endif 62*8e33eff8Schristos #else 63*8e33eff8Schristos # define LG_VADDR 32 64*8e33eff8Schristos #endif 65*8e33eff8Schristos 66*8e33eff8Schristos /* Defined if C11 atomics are available. */ 67*8e33eff8Schristos /* #undef JEMALLOC_C11_ATOMICS */ 68*8e33eff8Schristos 69*8e33eff8Schristos /* Defined if GCC __atomic atomics are available. */ 70*8e33eff8Schristos #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 71*8e33eff8Schristos 72*8e33eff8Schristos /* Defined if GCC __sync atomics are available. */ 73*8e33eff8Schristos #define JEMALLOC_GCC_SYNC_ATOMICS 1 74*8e33eff8Schristos 75*8e33eff8Schristos /* 76*8e33eff8Schristos * Defined if __sync_add_and_fetch(uint32_t *, uint32_t) and 77*8e33eff8Schristos * __sync_sub_and_fetch(uint32_t *, uint32_t) are available, despite 78*8e33eff8Schristos * __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 not being defined (which means the 79*8e33eff8Schristos * functions are defined in libgcc instead of being inlines). 80*8e33eff8Schristos */ 81*8e33eff8Schristos /* #undef JE_FORCE_SYNC_COMPARE_AND_SWAP_4 */ 82*8e33eff8Schristos 83*8e33eff8Schristos /* 84*8e33eff8Schristos * Defined if __sync_add_and_fetch(uint64_t *, uint64_t) and 85*8e33eff8Schristos * __sync_sub_and_fetch(uint64_t *, uint64_t) are available, despite 86*8e33eff8Schristos * __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 not being defined (which means the 87*8e33eff8Schristos * functions are defined in libgcc instead of being inlines). 88*8e33eff8Schristos */ 89*8e33eff8Schristos /* #undef JE_FORCE_SYNC_COMPARE_AND_SWAP_8 */ 90*8e33eff8Schristos 91*8e33eff8Schristos /* 92*8e33eff8Schristos * Defined if __builtin_clz() and __builtin_clzl() are available. 93*8e33eff8Schristos */ 94*8e33eff8Schristos #define JEMALLOC_HAVE_BUILTIN_CLZ 95*8e33eff8Schristos 96*8e33eff8Schristos /* 97*8e33eff8Schristos * Defined if os_unfair_lock_*() functions are available, as provided by Darwin. 98*8e33eff8Schristos */ 99*8e33eff8Schristos /* #undef JEMALLOC_OS_UNFAIR_LOCK */ 100*8e33eff8Schristos 101*8e33eff8Schristos /* 102*8e33eff8Schristos * Defined if OSSpin*() functions are available, as provided by Darwin, and 103*8e33eff8Schristos * documented in the spinlock(3) manual page. 104*8e33eff8Schristos */ 105*8e33eff8Schristos /* #undef JEMALLOC_OSSPIN */ 106*8e33eff8Schristos 107*8e33eff8Schristos /* Defined if syscall(2) is usable. */ 108*8e33eff8Schristos #define JEMALLOC_USE_SYSCALL 109*8e33eff8Schristos 110*8e33eff8Schristos /* 111*8e33eff8Schristos * Defined if secure_getenv(3) is available. 112*8e33eff8Schristos */ 113*8e33eff8Schristos /* #undef JEMALLOC_HAVE_SECURE_GETENV */ 114*8e33eff8Schristos 115*8e33eff8Schristos /* 116*8e33eff8Schristos * Defined if issetugid(2) is available. 117*8e33eff8Schristos */ 118*8e33eff8Schristos #define JEMALLOC_HAVE_ISSETUGID 119*8e33eff8Schristos 120*8e33eff8Schristos /* Defined if pthread_atfork(3) is available. */ 121*8e33eff8Schristos #define JEMALLOC_HAVE_PTHREAD_ATFORK 122*8e33eff8Schristos 123*8e33eff8Schristos /* Defined if pthread_setname_np(3) is available. */ 124*8e33eff8Schristos /* #undef JEMALLOC_HAVE_PTHREAD_SETNAME_NP */ 125*8e33eff8Schristos 126*8e33eff8Schristos /* 127*8e33eff8Schristos * Defined if clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is available. 128*8e33eff8Schristos */ 129*8e33eff8Schristos /* #undef JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE */ 130*8e33eff8Schristos 131*8e33eff8Schristos /* 132*8e33eff8Schristos * Defined if clock_gettime(CLOCK_MONOTONIC, ...) is available. 133*8e33eff8Schristos */ 134*8e33eff8Schristos #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 135*8e33eff8Schristos 136*8e33eff8Schristos /* 137*8e33eff8Schristos * Defined if mach_absolute_time() is available. 138*8e33eff8Schristos */ 139*8e33eff8Schristos /* #undef JEMALLOC_HAVE_MACH_ABSOLUTE_TIME */ 140*8e33eff8Schristos 141*8e33eff8Schristos /* 142*8e33eff8Schristos * Defined if _malloc_thread_cleanup() exists. At least in the case of 143*8e33eff8Schristos * FreeBSD, pthread_key_create() allocates, which if used during malloc 144*8e33eff8Schristos * bootstrapping will cause recursion into the pthreads library. Therefore, if 145*8e33eff8Schristos * _malloc_thread_cleanup() exists, use it as the basis for thread cleanup in 146*8e33eff8Schristos * malloc_tsd. 147*8e33eff8Schristos */ 148*8e33eff8Schristos #define JEMALLOC_MALLOC_THREAD_CLEANUP 149*8e33eff8Schristos 150*8e33eff8Schristos /* 151*8e33eff8Schristos * Defined if threaded initialization is known to be safe on this platform. 152*8e33eff8Schristos * Among other things, it must be possible to initialize a mutex without 153*8e33eff8Schristos * triggering allocation in order for threaded allocation to be safe. 154*8e33eff8Schristos */ 155*8e33eff8Schristos /* #undef JEMALLOC_THREADED_INIT */ 156*8e33eff8Schristos 157*8e33eff8Schristos /* 158*8e33eff8Schristos * Defined if the pthreads implementation defines 159*8e33eff8Schristos * _pthread_mutex_init_calloc_cb(), in which case the function is used in order 160*8e33eff8Schristos * to avoid recursive allocation during mutex initialization. 161*8e33eff8Schristos */ 162*8e33eff8Schristos /* #undef JEMALLOC_MUTEX_INIT_CB */ 163*8e33eff8Schristos 164*8e33eff8Schristos /* Non-empty if the tls_model attribute is supported. */ 165*8e33eff8Schristos #if !defined(__vax__) && !defined(__mc68010__) 166*8e33eff8Schristos # define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) 167*8e33eff8Schristos #endif 168*8e33eff8Schristos 169*8e33eff8Schristos /* 170*8e33eff8Schristos * JEMALLOC_DEBUG enables assertions and other sanity checks, and disables 171*8e33eff8Schristos * inline functions. 172*8e33eff8Schristos */ 173*8e33eff8Schristos /* #undef JEMALLOC_DEBUG */ 174*8e33eff8Schristos 175*8e33eff8Schristos /* JEMALLOC_STATS enables statistics calculation. */ 176*8e33eff8Schristos #define JEMALLOC_STATS 177*8e33eff8Schristos 178*8e33eff8Schristos /* JEMALLOC_PROF enables allocation profiling. */ 179*8e33eff8Schristos /* #undef JEMALLOC_PROF */ 180*8e33eff8Schristos 181*8e33eff8Schristos /* Use libunwind for profile backtracing if defined. */ 182*8e33eff8Schristos /* #undef JEMALLOC_PROF_LIBUNWIND */ 183*8e33eff8Schristos 184*8e33eff8Schristos /* Use libgcc for profile backtracing if defined. */ 185*8e33eff8Schristos /* #undef JEMALLOC_PROF_LIBGCC */ 186*8e33eff8Schristos 187*8e33eff8Schristos /* Use gcc intrinsics for profile backtracing if defined. */ 188*8e33eff8Schristos /* #undef JEMALLOC_PROF_GCC */ 189*8e33eff8Schristos 190*8e33eff8Schristos /* 191*8e33eff8Schristos * JEMALLOC_DSS enables use of sbrk(2) to allocate extents from the data storage 192*8e33eff8Schristos * segment (DSS). 193*8e33eff8Schristos */ 194*8e33eff8Schristos #define JEMALLOC_DSS 195*8e33eff8Schristos 196*8e33eff8Schristos /* Support memory filling (junk/zero). */ 197*8e33eff8Schristos #define JEMALLOC_FILL 198*8e33eff8Schristos 199*8e33eff8Schristos /* Support utrace(2)-based tracing. */ 200*8e33eff8Schristos /* #undef JEMALLOC_UTRACE */ 201*8e33eff8Schristos 202*8e33eff8Schristos /* Support optional abort() on OOM. */ 203*8e33eff8Schristos /* #undef JEMALLOC_XMALLOC */ 204*8e33eff8Schristos 205*8e33eff8Schristos /* Support lazy locking (avoid locking unless a second thread is launched). */ 206*8e33eff8Schristos /* #undef JEMALLOC_LAZY_LOCK */ 207*8e33eff8Schristos 208*8e33eff8Schristos /* 209*8e33eff8Schristos * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size 210*8e33eff8Schristos * classes). 211*8e33eff8Schristos */ 212*8e33eff8Schristos /* #undef LG_QUANTUM */ 213*8e33eff8Schristos 214*8e33eff8Schristos /* One page is 2^LG_PAGE bytes. */ 215*8e33eff8Schristos #include <machine/vmparam.h> 216*8e33eff8Schristos #if defined(MAX_PAGE_SHIFT) 217*8e33eff8Schristos #define LG_PAGE MAX_PAGE_SHIFT 218*8e33eff8Schristos #elif defined(PAGE_SHIFT) 219*8e33eff8Schristos #define LG_PAGE PAGE_SHIFT 220*8e33eff8Schristos #else 221*8e33eff8Schristos #error "PAGE_SHIFT is not defined" 222*8e33eff8Schristos #endif 223*8e33eff8Schristos 224*8e33eff8Schristos /* 225*8e33eff8Schristos * One huge page is 2^LG_HUGEPAGE bytes. Note that this is defined even if the 226*8e33eff8Schristos * system does not explicitly support huge pages; system calls that require 227*8e33eff8Schristos * explicit huge page support are separately configured. 228*8e33eff8Schristos */ 229*8e33eff8Schristos #define LG_HUGEPAGE 21 230*8e33eff8Schristos 231*8e33eff8Schristos /* 232*8e33eff8Schristos * If defined, adjacent virtual memory mappings with identical attributes 233*8e33eff8Schristos * automatically coalesce, and they fragment when changes are made to subranges. 234*8e33eff8Schristos * This is the normal order of things for mmap()/munmap(), but on Windows 235*8e33eff8Schristos * VirtualAlloc()/VirtualFree() operations must be precisely matched, i.e. 236*8e33eff8Schristos * mappings do *not* coalesce/fragment. 237*8e33eff8Schristos */ 238*8e33eff8Schristos #define JEMALLOC_MAPS_COALESCE 239*8e33eff8Schristos 240*8e33eff8Schristos /* 241*8e33eff8Schristos * If defined, retain memory for later reuse by default rather than using e.g. 242*8e33eff8Schristos * munmap() to unmap freed extents. This is enabled on 64-bit Linux because 243*8e33eff8Schristos * common sequences of mmap()/munmap() calls will cause virtual memory map 244*8e33eff8Schristos * holes. 245*8e33eff8Schristos */ 246*8e33eff8Schristos /* #undef JEMALLOC_RETAIN */ 247*8e33eff8Schristos 248*8e33eff8Schristos /* TLS is used to map arenas and magazine caches to threads. */ 249*8e33eff8Schristos #if !defined(__vax__) && !defined(__mc68010__) 250*8e33eff8Schristos #define JEMALLOC_TLS 251*8e33eff8Schristos #endif 252*8e33eff8Schristos 253*8e33eff8Schristos /* 254*8e33eff8Schristos * Used to mark unreachable code to quiet "end of non-void" compiler warnings. 255*8e33eff8Schristos * Don't use this directly; instead use unreachable() from util.h 256*8e33eff8Schristos */ 257*8e33eff8Schristos #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable 258*8e33eff8Schristos 259*8e33eff8Schristos /* 260*8e33eff8Schristos * ffs*() functions to use for bitmapping. Don't use these directly; instead, 261*8e33eff8Schristos * use ffs_*() from util.h. 262*8e33eff8Schristos */ 263*8e33eff8Schristos #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll 264*8e33eff8Schristos #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl 265*8e33eff8Schristos #define JEMALLOC_INTERNAL_FFS __builtin_ffs 266*8e33eff8Schristos 267*8e33eff8Schristos /* 268*8e33eff8Schristos * If defined, explicitly attempt to more uniformly distribute large allocation 269*8e33eff8Schristos * pointer alignments across all cache indices. 270*8e33eff8Schristos */ 271*8e33eff8Schristos #define JEMALLOC_CACHE_OBLIVIOUS 272*8e33eff8Schristos 273*8e33eff8Schristos /* 274*8e33eff8Schristos * If defined, enable logging facilities. We make this a configure option to 275*8e33eff8Schristos * avoid taking extra branches everywhere. 276*8e33eff8Schristos */ 277*8e33eff8Schristos /* #undef JEMALLOC_LOG */ 278*8e33eff8Schristos 279*8e33eff8Schristos /* 280*8e33eff8Schristos * Darwin (OS X) uses zones to work around Mach-O symbol override shortcomings. 281*8e33eff8Schristos */ 282*8e33eff8Schristos /* #undef JEMALLOC_ZONE */ 283*8e33eff8Schristos 284*8e33eff8Schristos /* 285*8e33eff8Schristos * Methods for determining whether the OS overcommits. 286*8e33eff8Schristos * JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY: Linux's 287*8e33eff8Schristos * /proc/sys/vm.overcommit_memory file. 288*8e33eff8Schristos * JEMALLOC_SYSCTL_VM_OVERCOMMIT: FreeBSD's vm.overcommit sysctl. 289*8e33eff8Schristos */ 290*8e33eff8Schristos /* #undef JEMALLOC_SYSCTL_VM_OVERCOMMIT */ 291*8e33eff8Schristos /* #undef JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY */ 292*8e33eff8Schristos 293*8e33eff8Schristos /* Defined if madvise(2) is available. */ 294*8e33eff8Schristos #define JEMALLOC_HAVE_MADVISE 295*8e33eff8Schristos 296*8e33eff8Schristos /* 297*8e33eff8Schristos * Defined if transparent huge pages are supported via the MADV_[NO]HUGEPAGE 298*8e33eff8Schristos * arguments to madvise(2). 299*8e33eff8Schristos */ 300*8e33eff8Schristos /* #undef JEMALLOC_HAVE_MADVISE_HUGE */ 301*8e33eff8Schristos 302*8e33eff8Schristos /* 303*8e33eff8Schristos * Methods for purging unused pages differ between operating systems. 304*8e33eff8Schristos * 305*8e33eff8Schristos * madvise(..., MADV_FREE) : This marks pages as being unused, such that they 306*8e33eff8Schristos * will be discarded rather than swapped out. 307*8e33eff8Schristos * madvise(..., MADV_DONTNEED) : If JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS is 308*8e33eff8Schristos * defined, this immediately discards pages, 309*8e33eff8Schristos * such that new pages will be demand-zeroed if 310*8e33eff8Schristos * the address region is later touched; 311*8e33eff8Schristos * otherwise this behaves similarly to 312*8e33eff8Schristos * MADV_FREE, though typically with higher 313*8e33eff8Schristos * system overhead. 314*8e33eff8Schristos */ 315*8e33eff8Schristos #define JEMALLOC_PURGE_MADVISE_FREE 316*8e33eff8Schristos #define JEMALLOC_PURGE_MADVISE_DONTNEED 317*8e33eff8Schristos /* #undef JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS */ 318*8e33eff8Schristos 319*8e33eff8Schristos /* Defined if madvise(2) is available but MADV_FREE is not (x86 Linux only). */ 320*8e33eff8Schristos /* #undef JEMALLOC_DEFINE_MADVISE_FREE */ 321*8e33eff8Schristos 322*8e33eff8Schristos /* 323*8e33eff8Schristos * Defined if MADV_DO[NT]DUMP is supported as an argument to madvise. 324*8e33eff8Schristos */ 325*8e33eff8Schristos /* #undef JEMALLOC_MADVISE_DONTDUMP */ 326*8e33eff8Schristos 327*8e33eff8Schristos /* 328*8e33eff8Schristos * Defined if transparent huge pages (THPs) are supported via the 329*8e33eff8Schristos * MADV_[NO]HUGEPAGE arguments to madvise(2), and THP support is enabled. 330*8e33eff8Schristos */ 331*8e33eff8Schristos /* #undef JEMALLOC_THP */ 332*8e33eff8Schristos 333*8e33eff8Schristos /* Define if operating system has alloca.h header. */ 334*8e33eff8Schristos /* #undef JEMALLOC_HAS_ALLOCA_H */ 335*8e33eff8Schristos 336*8e33eff8Schristos /* C99 restrict keyword supported. */ 337*8e33eff8Schristos #define JEMALLOC_HAS_RESTRICT 1 338*8e33eff8Schristos 339*8e33eff8Schristos /* For use by hash code. */ 340*8e33eff8Schristos #include <sys/endian.h> 341*8e33eff8Schristos #if _BYTE_ORDER == _BIG_ENDIAN 342*8e33eff8Schristos #define JEMALLOC_BIG_ENDIAN 1 343*8e33eff8Schristos #endif 344*8e33eff8Schristos 345*8e33eff8Schristos /* sizeof(int) == 2^LG_SIZEOF_INT. */ 346*8e33eff8Schristos #define LG_SIZEOF_INT 2 347*8e33eff8Schristos 348*8e33eff8Schristos /* sizeof(long) == 2^LG_SIZEOF_LONG. */ 349*8e33eff8Schristos #ifdef _LP64 350*8e33eff8Schristos #define LG_SIZEOF_LONG 3 351*8e33eff8Schristos #else 352*8e33eff8Schristos #define LG_SIZEOF_LONG 2 353*8e33eff8Schristos #endif 354*8e33eff8Schristos 355*8e33eff8Schristos /* sizeof(long long) == 2^LG_SIZEOF_LONG_LONG. */ 356*8e33eff8Schristos #define LG_SIZEOF_LONG_LONG 3 357*8e33eff8Schristos 358*8e33eff8Schristos /* sizeof(intmax_t) == 2^LG_SIZEOF_INTMAX_T. */ 359*8e33eff8Schristos #define LG_SIZEOF_INTMAX_T 3 360*8e33eff8Schristos 361*8e33eff8Schristos /* glibc malloc hooks (__malloc_hook, __realloc_hook, __free_hook). */ 362*8e33eff8Schristos /* #undef JEMALLOC_GLIBC_MALLOC_HOOK */ 363*8e33eff8Schristos 364*8e33eff8Schristos /* glibc memalign hook. */ 365*8e33eff8Schristos /* #undef JEMALLOC_GLIBC_MEMALIGN_HOOK */ 366*8e33eff8Schristos 367*8e33eff8Schristos /* pthread support */ 368*8e33eff8Schristos #define JEMALLOC_HAVE_PTHREAD 369*8e33eff8Schristos 370*8e33eff8Schristos /* dlsym() support */ 371*8e33eff8Schristos #define JEMALLOC_HAVE_DLSYM 372*8e33eff8Schristos 373*8e33eff8Schristos /* Adaptive mutex support in pthreads. */ 374*8e33eff8Schristos /* #undef JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP */ 375*8e33eff8Schristos 376*8e33eff8Schristos /* GNU specific sched_getcpu support */ 377*8e33eff8Schristos /* #undef JEMALLOC_HAVE_SCHED_GETCPU */ 378*8e33eff8Schristos 379*8e33eff8Schristos /* GNU specific sched_setaffinity support */ 380*8e33eff8Schristos /* #undef JEMALLOC_HAVE_SCHED_SETAFFINITY */ 381*8e33eff8Schristos 382*8e33eff8Schristos /* 383*8e33eff8Schristos * If defined, all the features necessary for background threads are present. 384*8e33eff8Schristos */ 385*8e33eff8Schristos #define JEMALLOC_BACKGROUND_THREAD 1 386*8e33eff8Schristos 387*8e33eff8Schristos /* 388*8e33eff8Schristos * If defined, jemalloc symbols are not exported (doesn't work when 389*8e33eff8Schristos * JEMALLOC_PREFIX is not defined). 390*8e33eff8Schristos */ 391*8e33eff8Schristos /* #undef JEMALLOC_EXPORT */ 392*8e33eff8Schristos 393*8e33eff8Schristos /* config.malloc_conf options string. */ 394*8e33eff8Schristos #define JEMALLOC_CONFIG_MALLOC_CONF "" 395*8e33eff8Schristos 396*8e33eff8Schristos /* If defined, jemalloc takes the malloc/free/etc. symbol names. */ 397*8e33eff8Schristos #define JEMALLOC_IS_MALLOC 1 398*8e33eff8Schristos 399*8e33eff8Schristos /* 400*8e33eff8Schristos * Defined if strerror_r returns char * if _GNU_SOURCE is defined. 401*8e33eff8Schristos */ 402*8e33eff8Schristos /* #undef JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE */ 403*8e33eff8Schristos 404*8e33eff8Schristos #endif /* JEMALLOC_INTERNAL_DEFS_H_ */ 405