From 643726852be07510fae913f73afebb3f9f76cb6f Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sun, 26 Apr 2026 06:38:32 +0700 Subject: [PATCH] Reduce deadlock cap --- Cargo.toml | 2 ++ src/sync/ordered.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0fb581f896..6d4f059ace 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,6 +83,8 @@ default = [ "serial_debug", "self_modifying", "x86_kvm_pv", + #"busy_panic", + #"drop_panic", #"syscall_debug" ] diff --git a/src/sync/ordered.rs b/src/sync/ordered.rs index a8cf6fa398..3ad286d35e 100644 --- a/src/sync/ordered.rs +++ b/src/sync/ordered.rs @@ -206,7 +206,7 @@ impl Default for Mutex { } #[cfg(feature = "busy_panic")] -pub const DEADLOCK_SPIN_CAP: usize = 1_000_000_000; +pub const DEADLOCK_SPIN_CAP: usize = 5000; impl Mutex { /// Creates a new mutex in an unlocked state ready for use