diff --git a/Cargo.lock b/Cargo.lock index 1c6ef058f7..43a10951f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1146,9 +1146,9 @@ dependencies = [ [[package]] name = "talc" -version = "3.1.2" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c33c8e8f66402b22785de458a20abc1a424b40c6bb1526bdb74b7664ac4eec29" +checksum = "4c8a90197f5e7279d514c1dc88c300f70323c8d0cf70c05941094007363f00b7" dependencies = [ "lock_api", ] diff --git a/Cargo.toml b/Cargo.toml index 791a20072c..df32b6073f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,7 +89,7 @@ rand_chacha = { version = "0.3", default-features = false } shell-words = { version = "1.1", default-features = false } smallvec = { version = "1", features = ["const_new"] } take-static = "0.1" -talc = { version = "3" } +talc = { version = "4" } time = { version = "0.3", default-features = false } zerocopy = { version = "0.7", features = ["derive"] } diff --git a/src/mm/allocator.rs b/src/mm/allocator.rs index dbe1d8d419..615a3e2c09 100644 --- a/src/mm/allocator.rs +++ b/src/mm/allocator.rs @@ -28,7 +28,7 @@ impl LockedAllocator { pub unsafe fn init(&self, heap_bottom: *mut u8, heap_size: usize) { let arena = Span::from_base_size(heap_bottom, heap_size); unsafe { - self.0.talc().claim(arena).unwrap(); + self.0.lock().claim(arena).unwrap(); } } }