From ab2d4b8175217d4c17f79d171b28072473923478 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:56:31 +0000 Subject: [PATCH] build(deps): bump talc from 3.1.2 to 4.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [talc](https://github.com/SFBdragon/talc) from 3.1.2 to 4.0.0. - [Commits](https://github.com/SFBdragon/talc/commits) --- updated-dependencies: - dependency-name: talc dependency-type: direct:production update-type: version-update:semver-major ... Co-authored-by: Martin Kröning --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/mm/allocator.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ec12720de..2773b4d4b7 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(); } } }