Print this page
5045 use atomic_{inc,dec}_* instead of atomic_add_*
@@ -1685,13 +1685,13 @@
* 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);
+ atomic_dec_32(&p->p_pool->pool_ref);
p->p_pool = pool;
- atomic_add_32(&p->p_pool->pool_ref, 1);
+ atomic_inc_32(&p->p_pool->pool_ref);
}
/*
* Okay, we've tortured this guy enough.
* Let this poor process go now.
*/