Browse Source

Fix an error resulting from the deanon work.

The expression could never be nil. The original was testing against
the value of p in the lock, i.e. whether another process wanted to use
the pool and we got there first.

This is pretty amazing stuff, in that it works at all, but the use of anon
struct members made it even more confusing. Overall, I think they're a bad deal.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 8 years ago
parent
commit
85b30c4493
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/9/port/page.c

+ 1 - 1
sys/src/9/port/page.c

@@ -354,7 +354,7 @@ putpage(Page *p)
 		else
 			pagechainhead(p);
 	}
-	if(&pga.rend.l != nil)
+	if(pga.rend.l.p != nil)
 		wakeup(&pga.rend);
 	unlock(&p->l);
 	if(rlse)