Closed danielealbano closed 1 year ago
Patch coverage: 50.00
% and project coverage change: +0.01
:tada:
Comparison is base (
7fa5d21
) 82.00% compared to head (0e03ccc
) 82.01%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This PR fix a bug in queue_mpmc which can lead to memory loss.
When popping the last value available on a page, the next_page pointer of the previous page can still be null because the other thread that has created the page and inserted the value might still have to fill the value. Therefore, to ensure that the chain doesn't break, ensure that next_page is not null before trying to do the CAS operation on the head of the queue.