mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03: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:
parent
34c823f147
commit
c17bf8b368
3 changed files with 49 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue