Replace jemalloc bootstrap options with override-allocator - #155617
Conversation
|
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.
fc5ac40 to
11c97bb
Compare
|
Just renaming this doesn't make sense on its own; the config and the feature handling would have to be split. |
|
The idea was to not expose control over which allocator gets used, so you couldn't specify mimalloc on Linux for example. Do we want to support more than one (on a specific target)? |
|
@rustbot reroll |
|
We'll want different approaches on Linux, macOS and Windows to override the C / Rust allocators. Having a single Cargo feature seems like it will result in less I'd like some feedback on the direction to take here so I can start working on macOS and Windows PRs on top of this. |
|
I feel like there are specific things that we want to do per the selected allocator ( On the other hand, we will either have to try to build all of the allocators on CI to ensure that they still at least build, or risk that the unused OS/allocator combos might go stale and break. |
11c97bb to
ff48fdf
Compare
jemalloc bootstrap options to override-allocatorjemalloc bootstrap options with override-allocator
ff48fdf to
6097bef
Compare
|
We should keep the old |
6097bef to
23dbc53
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
I added an LLM written commit which adds back the |
23dbc53 to
011da65
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Replace `jemalloc` bootstrap options with `override-allocator`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (22599b1): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (secondary 3.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 486.983s -> 488.14s (0.24%) |
|
Perf. looks good, thanks. @bors r=Mark-Simulacrum,Kobzol |
…uwer Rollup of 7 pull requests Successful merges: - #155617 (Replace `jemalloc` bootstrap options with `override-allocator`) - #156225 (feat(num): improve error messages for `TryFromIntError`) - #159058 (implement #![feature(macroless_generic_const_args)]) - #159435 (core: implement `Rng` for references) - #159471 (Make `Global` and `System` allocators unstably implement `const Clone + const Default`.) - #159590 (Remove some dead code) - #159636 (Improve some comments (and an error message))
Rollup merge of #155617 - Zoxc:allocator-feature-rename, r=Mark-Simulacrum,Kobzol Replace `jemalloc` bootstrap options with `override-allocator` I want to make [use of `mimalloc` on Windows](#138764) so this renames `jemalloc` bootstrap options to `override-allocator` so we can reuse the same flag for this purpose.
…uwer Rollup of 7 pull requests Successful merges: - rust-lang/rust#155617 (Replace `jemalloc` bootstrap options with `override-allocator`) - rust-lang/rust#156225 (feat(num): improve error messages for `TryFromIntError`) - rust-lang/rust#159058 (implement #![feature(macroless_generic_const_args)]) - rust-lang/rust#159435 (core: implement `Rng` for references) - rust-lang/rust#159471 (Make `Global` and `System` allocators unstably implement `const Clone + const Default`.) - rust-lang/rust#159590 (Remove some dead code) - rust-lang/rust#159636 (Improve some comments (and an error message))
View all comments
I want to make use of
mimallocon Windows so this renamesjemallocbootstrap options tooverride-allocatorso we can reuse the same flag for this purpose.