From deed44a472edaf11d35fa98c7e68a288f8dfe93f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 22 Jul 2020 13:40:45 +0200 Subject: Remove support for jemalloc We only used it for measuring memory usage, but now we can use glibc's allocator for that just fine --- xtask/src/main.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'xtask/src/main.rs') diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 399ff7204..53d3ce3e7 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -45,7 +45,6 @@ USAGE: FLAGS: --client-code Install only VS Code plugin --server Install only the language server - --jemalloc Use jemalloc for server --mimalloc Use mimalloc for server -h, --help Prints help information " @@ -62,15 +61,8 @@ FLAGS: return Ok(()); } - let malloc = match (args.contains("--jemalloc"), args.contains("--mimalloc")) { - (false, false) => Malloc::System, - (true, false) => Malloc::Jemalloc, - (false, true) => Malloc::Mimalloc, - (true, true) => { - eprintln!("error: Cannot use both `--jemalloc` and `--mimalloc`"); - return Ok(()); - } - }; + let malloc = + if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System }; args.finish()?; -- cgit v1.2.3