Skip to content

Commit

Permalink
Fix erroneous assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-green committed Dec 6, 2010
1 parent 678d00c commit 1108ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erts/lib_src/common/ethr_mutex.c
Expand Up @@ -2101,7 +2101,10 @@ rwmutex_unlock_wake(ethr_rwmutex *rwmtx, int have_w, long initial,
if (!have_w) {
act = ethr_atomic_read_bor(&rwmtx->mtxb.flgs,
ETHR_RWMTX_W_FLG__);
ETHR_ASSERT((act & ~ETHR_RWMTX_WAIT_FLGS__) == 0);
ETHR_ASSERT((act & ~(ETHR_RWMTX_WAIT_FLGS__
| (rwmtx->type == ETHR_RWMUTEX_TYPE_NORMAL
? 0
: ETHR_RWMTX_R_PEND_UNLCK_MASK__))) == 0);
ETHR_ASSERT(act & ETHR_RWMTX_W_WAIT_FLG__);
act |= ETHR_RWMTX_W_FLG__;
}
Expand Down

0 comments on commit 1108ed8

Please sign in to comment.