FixedSizeQueue should recover from extreme dequeue operation. When queue is enqueued and dequeued several times (till it becomes empty), the tail index will lose track of the tail. It only happens if we dequeue after it becomes empty again. Changing the if logic will fix this problem. I started changing the code after the regression test failed.
FixedSizeQueue should recover from extreme dequeue operation. When queue is enqueued and dequeued several times (till it becomes empty), the tail index will lose track of the tail. It only happens if we dequeue after it becomes empty again. Changing the if logic will fix this problem. I started changing the code after the regression test failed.