kernel: guard pushlock assertions with DEBUG_LOCKS

This commit is contained in:
wnstngs
2026-09-28 22:35:13 +03:00
parent 4eab391004
commit 2db436c700
+2
View File
@@ -141,8 +141,10 @@ static void pushlock_update_waiters(pushlock_t *pushlock, pushlock_t state) {
for (;;) {
pushlock_assert_state(state);
#ifdef DEBUG_LOCKS
__assert(state & PUSHLOCK_FLAGS_CONTENDED);
__assert(state & PUSHLOCK_FLAGS_WAKING);
#endif
head = PUSHLOCK_GET_POINTER(state);
oldest = pushlock_complete_waiter_links(head);