Skip to content

Commit

Permalink
Skip WAIT_PENDING check if using relaxed CPR (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
tli2 authored Apr 11, 2020
1 parent 54b92c9 commit c6c4420
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public ValueTask OnThreadState<Key, Value, Input, Output, Context, Functions>(
case Phase.WAIT_PENDING:
if (ctx != null)
{
if (!ctx.prevCtx.markers[EpochPhaseIdx.WaitPending])
if (!faster.RelaxedCPR &&!ctx.prevCtx.markers[EpochPhaseIdx.WaitPending])
{
if (ctx.prevCtx.HasNoPendingRequests)
ctx.prevCtx.markers[EpochPhaseIdx.WaitPending] = true;
Expand Down

0 comments on commit c6c4420

Please sign in to comment.