concurrent_hash_map: make my_mask a volatile field (remove p<>)
And explicitly snapshot my_mask and my_size in clear() and swap(). Those are the only 2 function in which we want size and mask to be changed transactionally (because they can be called inside outer transaction).
parent
d1ff9110
Please register or sign in to comment