342:
343: if (__predict_false(pp->pr_entered_file != NULL)) {
344: printf("pool %s: reentrancy at file %s line %ld\n",
358:
359: if (__predict_false(pp->pr_entered_file == NULL)) {
360: printf("pool %s not entered?\n", pp->pr_wchan);
1280: #ifdef DIAGNOSTIC
1281: if (__predict_false(pp->pr_itemsperpage == 0))
1282: panic("pool_get: pool %p: pr_itemsperpage is zero, "
1283: "pool not initialized?", pp);
1284: if (__predict_false(curlwp == NULL && doing_shutdown == 0 &&
1285: (flags & PR_WAITOK) != 0))
1305: #ifdef DIAGNOSTIC
1306: if (__predict_false(pp->pr_nout > pp->pr_hardlimit)) {
1307: pr_leave(pp);
1311: #endif
1312: if (__predict_false(pp->pr_nout == pp->pr_hardlimit)) {
1313: if (pp->pr_drain_hook != NULL) {
1401: #ifdef DIAGNOSTIC
1402: if (__predict_false(ph->ph_nmissing == pp->pr_itemsperpage)) {
1403: pr_leave(pp);
1413: v = pi = LIST_FIRST(&ph->ph_itemlist);
1414: if (__predict_false(v == NULL)) {
1415: pr_leave(pp);
1419: #ifdef DIAGNOSTIC
1420: if (__predict_false(pp->pr_nitems == 0)) {
1421: pr_leave(pp);
1433: #ifdef DIAGNOSTIC
1434: if (__predict_false(pi->pi_magic != PI_MAGIC)) {
1435: pr_printlog(pp, pi, printf);
1450: #ifdef DIAGNOSTIC
1451: if (__predict_false(pp->pr_nidle == 0))
1452: panic("pool_get: nidle inconsistent");
1465: #ifdef DIAGNOSTIC
1466: if (__predict_false((pp->pr_roflags & PR_NOTOUCH) == 0 &&
1467: !LIST_EMPTY(&ph->ph_itemlist))) {
1517: #ifdef DIAGNOSTIC
1518: if (__predict_false(pp->pr_nout == 0)) {
1519: printf("pool %s: putting with none out\n",
1524:
1525: if (__predict_false((ph = pr_find_pagehead(pp, v)) == NULL)) {
1526: pr_printlog(pp, NULL, printf);
1677: }
1678: if (__predict_false(cp == NULL || ph == NULL)) {
1679: if (cp != NULL) {
2849: */
2850: if (__predict_false(!mutex_tryenter(&pc->pc_lock))) {
2851: #ifndef T2EX
2901: *objectp = object;
2902: if (__predict_false(object == NULL))
2903: return false;
2904:
2905: if (__predict_false((*pc->pc_ctor)(pc->pc_arg, object, flags) != 0)) {
2906: pool_put(&pc->pc_pool, object);
2958: object = pcg->pcg_objects[--pcg->pcg_avail].pcgo_va;
2959: if (__predict_false(pap != NULL))
2960: *pap = pcg->pcg_objects[pcg->pcg_avail].pcgo_pa;
3015: */
3016: if (__predict_false(pc->pc_emptygroups == NULL)) {
3017: if (__predict_true(!pool_cache_disable)) {
3026: /* Lock the cache. */
3027: if (__predict_false(!mutex_tryenter(&pc->pc_lock))) {
3028: #ifndef T2EX
3038: */
3039: if (__predict_false(curlwp->l_ncsw != ncsw)) {
3040: mutex_exit(&pc->pc_lock);
3062: KASSERT(pcg->pcg_avail == 0);
3063: if (__predict_false(cc->cc_previous == &pcg_dummy)) {
3064: cc->cc_previous = pcg;