about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2025-07-23 07:27:01 -0700
committerAlex Crichton <alex@alexcrichton.com>2025-07-23 07:45:42 -0700
commit93d2003c9a4a35522b3528a4df638dd4e315bd14 (patch)
treec6ed76f5793072d91d830518e1465b981cf90ef1
parent5a30e4307f0506bed87eeecd171f8366fdbda1dc (diff)
downloadrust-93d2003c9a4a35522b3528a4df638dd4e315bd14.tar.gz
rust-93d2003c9a4a35522b3528a4df638dd4e315bd14.zip
Update `dlmalloc` dependency of libstd
This primarily pulls in alexcrichton/dlmalloc-rs/55 and
alexcrichton/dlmalloc-rs/54 to address 144199. Notably the highest byte
in the wasm address space is no longer allocatable and additionally the
allocator internally uses `wrapping_add` instead of `add` on pointers
since on 32-bit platforms offsets might be larger than half the address
space.
-rw-r--r--library/Cargo.lock4
-rw-r--r--library/std/Cargo.toml2
2 files changed, 3 insertions, 3 deletions
diff --git a/library/Cargo.lock b/library/Cargo.lock
index 94155e08398..cb356480ead 100644
--- a/library/Cargo.lock
+++ b/library/Cargo.lock
@@ -78,9 +78,9 @@ dependencies = [
 
 [[package]]
 name = "dlmalloc"
-version = "0.2.9"
+version = "0.2.10"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d01597dde41c0b9da50d5f8c219023d63d8f27f39a27095070fd191fddc83891"
+checksum = "fa3a2dbee57b69fbb5dbe852fa9c0925697fb0c7fbcb1593e90e5ffaedf13d51"
 dependencies = [
  "cfg-if",
  "libc",
diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml
index ba1e1f5218a..57859ea9147 100644
--- a/library/std/Cargo.toml
+++ b/library/std/Cargo.toml
@@ -63,7 +63,7 @@ rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
 rand_xorshift = "0.4.0"
 
 [target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
-dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
+dlmalloc = { version = "0.2.10", features = ['rustc-dep-of-std'] }
 
 [target.x86_64-fortanix-unknown-sgx.dependencies]
 fortanix-sgx-abi = { version = "0.5.0", features = [