mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Replace unwind-sys with backtrace crate on Linux (#37728)
This PR removes `unwind-sys` usage from background_hang_monitor on Linux, replacing it with the [backtrace crate](https://crates.io/crates/backtrace). Testing: `hang_monitor-tests.rs` still pass after the change (on Ubuntu 24.04). Fixes: https://github.com/servo/servo/issues/35063 --------- Signed-off-by: CarePackage17 <5157010+CarePackage17@users.noreply.github.com>
This commit is contained in:
parent
be1ebb8ad4
commit
a93d977020
3 changed files with 13 additions and 85 deletions
|
@ -28,7 +28,6 @@ mach2 = { version = "0.4", optional = true }
|
|||
|
||||
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64", target_env = "ohos", target_env = "musl"))))'.dependencies]
|
||||
nix = { workspace = true, features = ["signal"], optional = true }
|
||||
unwind-sys = { version = "0.1.4", optional = true }
|
||||
|
||||
[features]
|
||||
sampler = ["unwind-sys", "mach2", "nix"]
|
||||
sampler = ["mach2", "nix"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue