From 814b7cf85905d93f84d497ee83cdd972a4429afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Tue, 21 Apr 2026 22:01:29 +0200 Subject: [PATCH 1/2] Replace `jemalloc` bootstrap options with `override-allocator` --- src/building/optimized-build.md | 4 ++-- src/profiling/with-perf.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/building/optimized-build.md b/src/building/optimized-build.md index 0a6b82eba4..a9c19fa585 100644 --- a/src/building/optimized-build.md +++ b/src/building/optimized-build.md @@ -31,11 +31,11 @@ Enabling LTO on Linux has [produced] speed-ups by up to 10%. ## Memory allocator 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` +If you want to enable the `jemalloc` allocator, you can set the `rust.override-allocator` option to `jemalloc` in `bootstrap.toml`: ```toml -rust.jemalloc = true +rust.override-allocator = "jemalloc" ``` > Note that this option is currently only supported for Linux and macOS targets. diff --git a/src/profiling/with-perf.md b/src/profiling/with-perf.md index 50281b6b60..3285a486eb 100644 --- a/src/profiling/with-perf.md +++ b/src/profiling/with-perf.md @@ -7,7 +7,7 @@ This is a guide for how to profile rustc with [perf](https://perf.wiki.kernel.or - Get a clean checkout of rust-lang/rust - Set the following settings in your `bootstrap.toml`: - `rust.debuginfo-level = 1` - enables line debuginfo - - `rust.jemalloc = false` - lets you do memory use profiling with valgrind + - leave `rust.override-allocator` unset - lets you do memory use profiling with valgrind - leave everything else the defaults - Run `./x build` to get a full build - Make a rustup toolchain pointing to that result From 8d3fee65988d72a16c5dd43115173ff642eecca7 Mon Sep 17 00:00:00 2001 From: The rustc-josh-sync Cronjob Bot Date: Thu, 23 Jul 2026 08:28:05 +0000 Subject: [PATCH 2/2] Prepare for merging from rust-lang/rust This updates the rust-version file to 390279b302ca98ae270f434100ae3730531d1246. --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index a48a44e5d1..25a5238f53 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -9e71b3bc704eea68d39bd0f6a46703c7d22f5d3b +390279b302ca98ae270f434100ae3730531d1246