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

Remove unnecessary assertion from aligned_alloc #658

Merged
merged 1 commit into from
May 23, 2024

Conversation

mjp41
Copy link
Member

@mjp41 mjp41 commented May 23, 2024

With DR460 the undefined behaviour for size not being a multiple of alignment was remove.

The N2072 allows for this to return memory.

So we can remove this assert and keep the same conditions as memalign.

With [DR460](https://open-std.org/JTC1/SC22/WG14/www/docs/summary.htm#dr_460) the undefined behaviour for size not being a multiple of alignment was remove.

The [N2072](http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2072.htm) allows for this to return memory.

So we can remove this assert and keep the same conditions as memalign.
@mjp41 mjp41 requested review from anakrish and nwf-msr May 23, 2024 09:27
@mjp41
Copy link
Member Author

mjp41 commented May 23, 2024

See openenclave/openenclave#4981 (comment) for more discussion.

Copy link
Contributor

@anakrish anakrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mjp41 mjp41 merged commit b1d0d7d into microsoft:main May 23, 2024
46 of 50 checks passed
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