ck_epoch: Skip current record if it is marked as free.

Pointed out by Matt Johnson <jonhso87@crhc...>.
ck_pring
Samy Al Bahra 12 years ago
parent 0c56b1b8c6
commit 3cc43c4229

@ -235,8 +235,10 @@ ck_epoch_scan(struct ck_epoch *global,
cr = ck_epoch_record_container(cursor);
state = ck_pr_load_uint(&cr->state);
if (state & CK_EPOCH_STATE_FREE)
if (state & CK_EPOCH_STATE_FREE) {
cursor = CK_STACK_NEXT(cursor);
continue;
}
active = ck_pr_load_uint(&cr->active);
*af |= active;

Loading…
Cancel
Save