Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*

*** 1685,1697 **** * been skipped by one of our scans of the practive list * as a process with PEXITED flag set. */ if (p->p_pool != pool) { ASSERT(p->p_pool->pool_ref > 0); ! atomic_add_32(&p->p_pool->pool_ref, -1); p->p_pool = pool; ! atomic_add_32(&p->p_pool->pool_ref, 1); } /* * Okay, we've tortured this guy enough. * Let this poor process go now. */ --- 1685,1697 ---- * been skipped by one of our scans of the practive list * as a process with PEXITED flag set. */ if (p->p_pool != pool) { ASSERT(p->p_pool->pool_ref > 0); ! atomic_dec_32(&p->p_pool->pool_ref); p->p_pool = pool; ! atomic_inc_32(&p->p_pool->pool_ref); } /* * Okay, we've tortured this guy enough. * Let this poor process go now. */