Skip to content

Commit

Permalink
Fix a possible issue introduced with #7799
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Nov 26, 2024
1 parent ede5cfc commit 2520d7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public T poll() {
final T nextValue = nextNode.getAndNullValue();
spConsumerNode(nextNode);
// unlink previous consumer to help gc
currConsumerNode.soNext(null);
currConsumerNode.soNext(currConsumerNode);
return nextValue;
}
else if (currConsumerNode != lvProducerNode()) {
Expand All @@ -104,7 +104,7 @@ else if (currConsumerNode != lvProducerNode()) {
final T nextValue = nextNode.getAndNullValue();
spConsumerNode(nextNode);
// unlink previous consumer to help gc
currConsumerNode.soNext(null);
currConsumerNode.soNext(currConsumerNode);
return nextValue;
}
return null;
Expand Down

0 comments on commit 2520d7f

Please sign in to comment.