mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove support for jemalloc
We only used it for measuring memory usage, but now we can use glibc's allocator for that just fine
This commit is contained in:
parent
26932e0060
commit
deed44a472
10 changed files with 7 additions and 109 deletions
|
@ -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()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue