ref: 7a7cbfee9324feb4c1ed51a42deaf3603e8b51ef
parent: 422f8c3b9f16c330b805b4f6e32d45d9ca7a3694
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Mar 23 21:22:53 EDT 2025
libc/qlock: don't allow unlocking unlocked lock replace print with abort
--- a/sys/src/libc/9sys/qlock.c
+++ b/sys/src/libc/9sys/qlock.c
@@ -82,8 +82,7 @@
lock(&q->lock);
if (q->locked == 0)
- fprint(2, "qunlock called with qlock not held, from %#p\n",
- getcallerpc(&q));
+ abort();
p = q->head;
if(p != nil){
/* wakeup head waiting process */
--
⑨