> /n/dump/2010/1118/sys/src/9/port/qlock.c:18,23 - port/qlock.c:18,25
>   {
>       Proc *p;
>   
> +     if(up == nil && conf.postdawn)
> +             panic("qlock: %#p: postdawn up nil\n", getcallerpc(&q));
>       if(m->ilockdepth != 0)
>               print("qlock: %#p: ilockdepth %d\n", getcallerpc(&q), 
> m->ilockdepth);
>       if(up != nil && up->nlocks.ref)

Yes, this is the type of explicit-ness I was thinking of.  Note that
you can now drop further tests for up == 0 later in the qlock() text.

++L


Reply via email to