mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
Kernel: Add tracing to help catch thread blocking with incorrect state
A number of crashes in this `VERIFY_NOT_REACHED` case have been reported on discord. Lets add some tracing to gather more information and help diagnose what is the cause of these crashes.
This commit is contained in:
parent
e954b4bdd4
commit
1422187427
|
@ -166,6 +166,7 @@ void Thread::block(Kernel::Mutex& lock, SpinlockLocker<Spinlock>& lock_lock, u32
|
|||
VERIFY(m_blocker == nullptr);
|
||||
break;
|
||||
default:
|
||||
dbgln("Error: Attempting to block with invalid thread state - {}", state_string());
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
@ -1319,7 +1320,6 @@ void Thread::track_lock_release(LockRank rank)
|
|||
|
||||
m_lock_rank_mask ^= rank;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ErrorOr<void> AK::Formatter<Kernel::Thread>::format(FormatBuilder& builder, Kernel::Thread const& value)
|
||||
|
|
Loading…
Reference in a new issue