Idea behind current usage of weak CAS is that failure there still indicates contention which can be avoided by claiming a new block.
However, especially for read windows with unavoidable contention this may result in unnecessary block re-claims.
In general, maybe CAS should simply be reattempted before new block claim (esp. in pop case)?
Idea behind current usage of weak CAS is that failure there still indicates contention which can be avoided by claiming a new block.
However, especially for read windows with unavoidable contention this may result in unnecessary block re-claims.
In general, maybe CAS should simply be reattempted before new block claim (esp. in pop case)?