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: Use pointers to key-value pair in unordered map #422

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

Adda0
Copy link
Collaborator

@Adda0 Adda0 commented Jul 12, 2024

This PR fixes a bug from #420.

References and pointers do not get invalidated when rehashing of the unordered map happens. This does not hold for iterators, however. Therefore, we need to use pointers for worklist to be sure that the pointed to key-value pairs are still valid when new elements have been inserted in the map.

References and pointers do not get invalidated when rehashing of the
 unordered map happens. This does not hold for iterators, however.
@Adda0 Adda0 merged commit e636a4a into devel Jul 12, 2024
18 checks passed
@Adda0 Adda0 deleted the use_pointers_for_mutable_subset_maps branch July 12, 2024 09:03
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.

1 participant