mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Disable config from file or envvar with build flag
This adds a new autoconf flag, --disable-user-config, which disables reading the configuration from /etc/malloc.conf or the MALLOC_CONF environment variable. This can be useful when integrating jemalloc in a binary that internally handles all aspects of the configuration and shouldn't be impacted by ambient change in the environment.
This commit is contained in:
@@ -46,6 +46,12 @@
|
||||
*/
|
||||
#undef JEMALLOC_USE_CXX_THROW
|
||||
|
||||
/*
|
||||
* If undefined, disables reading configuration from environment variable or file
|
||||
*/
|
||||
#undef JEMALLOC_CONFIG_ENV
|
||||
#undef JEMALLOC_CONFIG_FILE
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# ifdef _WIN64
|
||||
# define LG_SIZEOF_PTR_WIN 3
|
||||
|
||||
Reference in New Issue
Block a user