On Tue, 2 Oct 2018 23:39:51 +0000
"Wang, Yipeng1" <[email protected]> wrote:
> >> + if (last_bkt->key_idx[i] != EMPTY_SLOT) {
> >> + cur_bkt->key_idx[pos] = last_bkt->key_idx[i];
> >> + cur_bkt->sig_current[pos] = last_bkt->sig_current[i];
> >> + cur_bkt->sig_alt[pos] = last_bkt->sig_alt[i];
> >> + last_bkt->sig_current[i] = NULL_SIGNATURE;
> >> + last_bkt->sig_alt[i] = NULL_SIGNATURE;
> >> + last_bkt->key_idx[i] = EMPTY_SLOT;
> >> + return;
> >In lock-free algorithm, this will require the global counter increment.
> >
> [Wang, Yipeng] I agree. Similar to your protect for cuckoo displacement,
> protecting the copy part