mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03: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
Notes:
sideshowbarker
2024-07-17 20:11:42 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/1422187427f Pull-request: https://github.com/SerenityOS/serenity/pull/12144
@ -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 New Issue
Block a user