| version 1.94, 2004/04/25 16:42:41 |
version 1.95, 2004/05/20 05:08:29 |
| Line 670 pool_get(struct pool *pp, int flags) |
|
| Line 670 pool_get(struct pool *pp, int flags) |
|
| void *v; |
void *v; |
| |
|
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| |
if (__predict_false(pp->pr_itemsperpage == 0)) |
| |
panic("pool_get: pool %p: pr_itemsperpage is zero, " |
| |
"pool not initialized?", pp); |
| if (__predict_false(curlwp == NULL && doing_shutdown == 0 && |
if (__predict_false(curlwp == NULL && doing_shutdown == 0 && |
| (flags & PR_WAITOK) != 0)) |
(flags & PR_WAITOK) != 0)) |
| panic("pool_get: %s: must have NOWAIT", pp->pr_wchan); |
panic("pool_get: %s: must have NOWAIT", pp->pr_wchan); |