Skip to content

Conversation

@bbernhar
Copy link
Contributor

@bbernhar bbernhar commented Jun 30, 2022

Previously, LinkedList has two different usages. The first usage was meant for fast random (non-iterator) based insertion, the second usage was non-random insertion where the size was known. This splits the latter usage into a seperate type, SizedLinkedList.

This change also identified a corner case bug where de-allocate incorrectly assumed the slab size was always equal to the memory size.

Previously, LinkedList has two different usages. The first usage was meant for fast random (non-iterator) based insertion, the second usage was non-random insertion where the size was known. This splits the latter usage into a seperate type, SizedLinkedList.

This change fixed a corner case bug with the slab list size() where de-allocate incorrectly assumed the slab size was always equal to the memory size.
@github-actions github-actions bot added D3D12 DirectX 12 Backend Change Frontend Changes to common or GPU API agnostic code. Test Changes in tests. labels Jun 30, 2022
@bbernhar bbernhar added the bug Something isn't working label Jun 30, 2022
@bbernhar bbernhar merged commit 8ad086f into main Jun 30, 2022
@bbernhar bbernhar deleted the sized_linked_list branch June 30, 2022 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working D3D12 DirectX 12 Backend Change Frontend Changes to common or GPU API agnostic code. Test Changes in tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants