Reduce deadlock cap

This commit is contained in:
Wildan M
2026-04-26 06:38:32 +07:00
parent 0534ab6377
commit 643726852b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -83,6 +83,8 @@ default = [
"serial_debug",
"self_modifying",
"x86_kvm_pv",
#"busy_panic",
#"drop_panic",
#"syscall_debug"
]
+1 -1
View File
@@ -206,7 +206,7 @@ impl<L: Level, T: Default> Default for Mutex<L, T> {
}
#[cfg(feature = "busy_panic")]
pub const DEADLOCK_SPIN_CAP: usize = 1_000_000_000;
pub const DEADLOCK_SPIN_CAP: usize = 5000;
impl<L: Level, T> Mutex<L, T> {
/// Creates a new mutex in an unlocked state ready for use