mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Kernel: Remove incorrect VERIFY() in Thread::relock_process
Turns are there are legitimate cases where the thread state isn't Thread::Running.
This commit is contained in:
parent
cb295ab644
commit
3bac14e19e
Notes:
sideshowbarker
2024-07-18 12:43:04 +09:00
Author: https://github.com/gunnarbeutner
Commit: 3bac14e19e
Pull-request: https://github.com/SerenityOS/serenity/pull/7871
1 changed files with 0 additions and 2 deletions
|
@ -326,8 +326,6 @@ LockMode Thread::unlock_process_if_locked(u32& lock_count_to_restore)
|
|||
|
||||
void Thread::relock_process(LockMode previous_locked, u32 lock_count_to_restore)
|
||||
{
|
||||
VERIFY(state() == Thread::Running);
|
||||
|
||||
// Clearing the critical section may trigger the context switch
|
||||
// flagged by calling Scheduler::donate_to or Scheduler::yield
|
||||
// above. We have to do it this way because we intentionally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue