ref: 70127e3c49ebbced48fe2195c646904cd6a21dfb
parent: ee89b38b316444bf35696e57c066dfcd640f3b06
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 */
--
⑨