kernel/thread: Assert that thread->pinned_to_cpu does not become negative.

May help with diagnosing #20100.
This commit is contained in:
Augustin Cavalier
2026-05-18 11:45:33 -04:00
parent 1ca6acfaf9
commit c6024e1bff
+1
View File
@@ -411,6 +411,7 @@ static inline void
thread_unpin_from_current_cpu(Thread* thread)
{
thread->pinned_to_cpu--;
ASSERT(thread->pinned_to_cpu >= 0);
}