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

aligned_alloc: Permit alignment values smaller than sizeof(uintptr_t) #671

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

bsdjhb
Copy link
Contributor

@bsdjhb bsdjhb commented Aug 26, 2024

posix_memalign() requires alignment values of at least sizeof(uintptr_t), but aligned_alloc() does not. memalign() regressed to require larger alignment in commit
6cbc50f.

Fixes #668

posix_memalign() requires alignment values of at least
sizeof(uintptr_t), but aligned_alloc() does not.  memalign() regressed
to require larger alignment in commit
6cbc50f.

Fixes microsoft#668
@mjp41
Copy link
Member

mjp41 commented Aug 26, 2024

Thanks for doing this. If you have a chance to add a test to malloc.cc, that would be awesome, but if you don't I'll just merge tomorrow.

@mjp41 mjp41 merged commit fcad154 into microsoft:main Aug 27, 2024
44 of 46 checks passed
@bsdjhb bsdjhb deleted the aligned_alloc branch August 28, 2024 15:39
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.

aligned_alloc doesn't permit alignments less than sizeof(uintptr_t)
2 participants