-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
After eons I wanted to reuse this structure for http 2 stream handling in Netty and..
| headSequence++; |
Doesn't seem to account for gaps 😕
i.e.
- Add 3 elements
- Remove with index the first 2 inserted: head sequence is still there but we have null out two slots
- Remove the last and observe that we won't get back anymore the full capacity although all 4 elements are gone
Remove should keep on checking bubbles of nulls to move the head as much as it can, till the tail, if necessary (or stopping at the first non null).
Metadata
Metadata
Assignees
Labels
No labels