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

[SR-5664] UnsafeRawPointer.allocate(bytes:alignedTo:) does not respect alignment. #48234

Closed
atrick opened this issue Aug 9, 2017 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@atrick
Copy link
Member

atrick commented Aug 9, 2017

Previous ID SR-5664
Radar rdar://22975669
Original Reporter @atrick
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @mikeash
Priority Medium

md5: b101ea2c10b5b761563c5e400f3aa884

Issue Description:

This API calls a Builtin which codegens down to swift::swift_slowAlloc. We should probably fix the implementation of this runtime call to invoke posix_memalign when available instead of lying to the user.

@mikeash
Copy link
Contributor

mikeash commented Feb 15, 2018

This is fixed by #14375

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants