Rename jemalloc bootstrap options to override-allocator#155617
Rename jemalloc bootstrap options to override-allocator#155617Zoxc wants to merge 1 commit intorust-lang:mainfrom
jemalloc bootstrap options to override-allocator#155617Conversation
|
The Miri subtree was changed cc @rust-lang/miri Warning If you are changing how CI LLVM is built or linked, make sure to bump cc @jieyouxu Some changes occurred in src/tools/clippy cc @rust-lang/clippy This PR modifies If appropriate, please update This PR modifies If appropriate, please update The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
|
r? @jieyouxu rustbot has assigned @jieyouxu. Use Why was this reviewer chosen?The reviewer was selected based on:
|
0213b60 to
0946ab6
Compare
This comment has been minimized.
This comment has been minimized.
0946ab6 to
fc5ac40
Compare
This comment has been minimized.
This comment has been minimized.
| /// above, instead of via Cargo as you'd normally do. This is currently needed for LTO due to | ||
| /// <https://github.com/rust-lang/cc-rs/issues/1613>. | ||
| #[cfg(feature = "jemalloc")] | ||
| #[cfg(feature = "override_allocator")] |
There was a problem hiding this comment.
I don't think this is right, because this imports tikv_jemalloc_sys specifically. But I don't know anything about this – maybe the comments above the import will be able to help you
fc5ac40 to
11c97bb
Compare
| Using a different memory allocator for `rustc` can provide significant performance benefits. | ||
| If you want to enable the `jemalloc` allocator, you can set the `rust.jemalloc` option to `true` | ||
| in `bootstrap.toml`: | ||
| If you want to enable the jemalloc allocator, you can set the `rust.override-allocator` option to `true` |
There was a problem hiding this comment.
| If you want to enable the jemalloc allocator, you can set the `rust.override-allocator` option to `true` | |
| If you want to enable the jemalloc allocator, you can set the `rust.override-allocator` option to `true`: |
I want to make use of
mimallocon Windows so this renamesjemallocbootstrap options tooverride-allocatorso we can reuse the same flag for this purpose.