mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Update the default value for opt_experimental_tcache_gc and opt_calloc_madvise_threshold
This commit is contained in:
committed by
Guangli Dai
parent
95f9f934ca
commit
ae4e729d15
@@ -145,4 +145,6 @@ typedef enum malloc_init_e malloc_init_t;
|
|||||||
assert(sizeof(type) * (count) <= VARIABLE_ARRAY_SIZE_MAX); \
|
assert(sizeof(type) * (count) <= VARIABLE_ARRAY_SIZE_MAX); \
|
||||||
VARIABLE_ARRAY_UNSAFE(type, name, count)
|
VARIABLE_ARRAY_UNSAFE(type, name, count)
|
||||||
|
|
||||||
|
#define CALLOC_MADVISE_THRESHOLD_DEFAULT (((size_t)1) << 23) /* 8 MB */
|
||||||
|
|
||||||
#endif /* JEMALLOC_INTERNAL_TYPES_H */
|
#endif /* JEMALLOC_INTERNAL_TYPES_H */
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ void (*JET_MUTABLE invalid_conf_abort)(void) = &abort;
|
|||||||
bool opt_utrace = false;
|
bool opt_utrace = false;
|
||||||
bool opt_xmalloc = false;
|
bool opt_xmalloc = false;
|
||||||
bool opt_experimental_infallible_new = false;
|
bool opt_experimental_infallible_new = false;
|
||||||
bool opt_experimental_tcache_gc = false;
|
bool opt_experimental_tcache_gc = true;
|
||||||
bool opt_zero = false;
|
bool opt_zero = false;
|
||||||
unsigned opt_narenas = 0;
|
unsigned opt_narenas = 0;
|
||||||
static fxp_t opt_narenas_ratio = FXP_INIT_INT(4);
|
static fxp_t opt_narenas_ratio = FXP_INIT_INT(4);
|
||||||
@@ -168,7 +168,8 @@ unsigned ncpus;
|
|||||||
unsigned opt_debug_double_free_max_scan =
|
unsigned opt_debug_double_free_max_scan =
|
||||||
SAFETY_CHECK_DOUBLE_FREE_MAX_SCAN_DEFAULT;
|
SAFETY_CHECK_DOUBLE_FREE_MAX_SCAN_DEFAULT;
|
||||||
|
|
||||||
size_t opt_calloc_madvise_threshold = 0;
|
size_t opt_calloc_madvise_threshold =
|
||||||
|
CALLOC_MADVISE_THRESHOLD_DEFAULT;
|
||||||
|
|
||||||
/* Protects arenas initialization. */
|
/* Protects arenas initialization. */
|
||||||
static malloc_mutex_t arenas_lock;
|
static malloc_mutex_t arenas_lock;
|
||||||
|
|||||||
Reference in New Issue
Block a user