default to jemalloc when both hardened_malloc and jemalloc enabled.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
3a51e18ce6
commit
0e46b750a0
4 changed files with 13 additions and 22 deletions
|
@ -14,10 +14,7 @@ pub fn check(config: &Config) -> Result<(), Error> {
|
|||
}
|
||||
|
||||
if cfg!(feature = "hardened_malloc") && cfg!(feature = "jemalloc") {
|
||||
warn!(
|
||||
"hardened_malloc and jemalloc were built together, this causes neither to be used. Conduwuit will still \
|
||||
function, but consider rebuilding and pick one as this is now no-op."
|
||||
);
|
||||
warn!("hardened_malloc and jemalloc are both enabled, this causes jemalloc to be used.");
|
||||
}
|
||||
|
||||
if config.unix_socket_path.is_some() && !cfg!(unix) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue