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

Add a default constructor to seqset nodes. #636

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

davidchisnall
Copy link
Collaborator

This allows them to exist as fields without invalidating the set.

This should make it possible to remove the undefined behaviour in the creation of FrontendSlabMetadata, which is currently created via a reinterpret_cast from a different-typed allocation. FrontendSlabMetadata has a SeqSet::Node field that is in an unspecified state on construction and which is valid only when inserted into a SeqSet.

This allows them to exist as fields without invalidating the set.

This should make it possible to remove the undefined behaviour in the
creation of FrontendSlabMetadata, which is currently created via a
reinterpret_cast from a different-typed allocation.
FrontendSlabMetadata has a SeqSet::Node field that is in an unspecified
state on construction and which is valid only when inserted into a
SeqSet.
@davidchisnall davidchisnall force-pushed the seqset-node-constructor branch from dd94316 to 0a60ba8 Compare September 18, 2023 09:53
@mjp41 mjp41 enabled auto-merge (squash) September 18, 2023 09:54
@mjp41 mjp41 merged commit 126e77f into main Sep 18, 2023
45 of 49 checks passed
@davidchisnall davidchisnall deleted the seqset-node-constructor branch September 18, 2023 10:17
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