Skip to content

Commit 1c71e74

Browse files
authored
use spin-rs to replace parking lot (#268)
Signed-off-by: Yang Keao <[email protected]>
1 parent 3d4e696 commit 1c71e74

File tree

4 files changed

+15
-29
lines changed

4 files changed

+15
-29
lines changed

Cargo.lock

Lines changed: 12 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ once_cell = "1.9"
2727
libc = "^0.2.66"
2828
log = "0.4"
2929
nix = { version = "0.26", default-features = false, features = ["signal", "fs"] }
30-
parking_lot = "0.12"
30+
spin = "0.10"
3131
tempfile = "3.1"
3232
thiserror = "2.0"
3333
findshlibs = "0.10"

src/profiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use std::time::SystemTime;
66

77
use nix::sys::signal;
88
use once_cell::sync::Lazy;
9-
use parking_lot::RwLock;
109
use smallvec::SmallVec;
10+
use spin::RwLock;
1111

1212
#[cfg(any(
1313
target_arch = "x86_64",

src/report.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::collections::HashMap;
44
use std::fmt::{Debug, Formatter};
55

6-
use parking_lot::RwLock;
6+
use spin::RwLock;
77

88
use crate::frames::{Frames, UnresolvedFrames};
99
use crate::profiler::Profiler;

0 commit comments

Comments
 (0)