ck_hs: Move replacement comment to ck_hs_set.

ck_pring
Samy Al Bahra 12 years ago
parent 8bad50240d
commit c6ff128510

@ -404,8 +404,11 @@ restart:
ck_pr_store_ptr(first, insert); ck_pr_store_ptr(first, insert);
/* /*
* If a duplicate was found, then we must guarantee that new entry * If a duplicate key was found, then delete it after
* is visible with respect to concurrent probe sequences. * signaling concurrent probes to restart. Optionally,
* it is possible to install tombstone after grace
* period if we can guarantee earlier position of
* duplicate key.
*/ */
if (slot != NULL && *slot != CK_HS_EMPTY) { if (slot != NULL && *slot != CK_HS_EMPTY) {
ck_pr_inc_uint(&map->generation[h & CK_HS_G_MASK]); ck_pr_inc_uint(&map->generation[h & CK_HS_G_MASK]);

Loading…
Cancel
Save