Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HashMap to work for elements with coarser alignment than platformAlignment #14

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

s-ludwig
Copy link
Member

Previously, due to limitations of the allocator framework, did not properly align the hash table.

This implements a simple reference counted, fixed size table/array. Since the allocator framework does not allow allocating with coarser alignment than what the original allocator advertises, this also manually realigns table entries, if neccessary.
@s-ludwig s-ludwig requested a review from l-kramer December 13, 2024 13:35
@l-kramer l-kramer merged commit 1992717 into master Dec 13, 2024
12 checks passed
@l-kramer l-kramer deleted the hashmap_alignment branch December 13, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants