-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Runtime] Use malloc_type_posix_memalign(). #70366
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
Conversation
We can't use `malloc_type_aligned_alloc()` because `aligned_alloc()` requires that `size` be a multiple of `alignment`, which isn't something we expect here. rdar://119137861
@swift-ci Please smoke test |
@swift-ci Please smoke test macOS platform |
We should have some tests for the heap functions. Note that these wouldn't have caught the problem that we fixed in the previous commit, because the conditions under which they run presently mean that the problematic code wouldn't have been active. They will *eventually* test that code, however. rdar://119137861
@swift-ci Please smoke test |
@swift-ci Please smoke test linux platform |
@swift-ci Please smoke test Linux platform |
1 similar comment
@swift-ci Please smoke test Linux platform |
This looks fine to me, but I'm not a swift reviewer so I won't click any of the review buttons :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently I do have to hit the approval button, but I would prefer folk more familiar with swift do the sign off (I see @mikeash has)
@swift-ci Please smoke test linux platform |
We can't use
malloc_type_aligned_alloc()
becausealigned_alloc()
requires thatsize
be a multiple ofalignment
, which isn't something we expect here.rdar://119137861