Skip to content

[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

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

al45tair
Copy link
Contributor

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

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
@al45tair al45tair requested a review from mikeash as a code owner December 11, 2023 12:25
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

@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
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test linux platform

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test Linux platform

1 similar comment
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test Linux platform

@ojhunt
Copy link

ojhunt commented Dec 12, 2023

This looks fine to me, but I'm not a swift reviewer so I won't click any of the review buttons :D

Copy link

@ojhunt ojhunt left a 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)

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test linux platform

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.

4 participants