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

gc: implement posix_memalign #4508

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

ChrisDodd
Copy link
Contributor

In case any backend wants to use this function.

@ChrisDodd ChrisDodd added this pull request to the merge queue Mar 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 8, 2024
@ChrisDodd ChrisDodd added this pull request to the merge queue Mar 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 8, 2024
@ChrisDodd ChrisDodd enabled auto-merge March 8, 2024 01:19
lib/gc.cpp Outdated
@@ -262,6 +262,12 @@ void *calloc(size_t size, size_t elsize) {
if (rv) memset(rv, 0, size);
return rv;
}
int posix_memalign(void **memptr, size_t alignment, size_t size) throw() {
Copy link
Contributor

Choose a reason for hiding this comment

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

throw() should be equivalent to noexcept in C++17 and will be dropped in C++20.
But sadly it seems like the exception spec will need to be os-dependent :-(.

@ChrisDodd ChrisDodd added this pull request to the merge queue Mar 12, 2024
Merged via the queue into p4lang:main with commit ba9a3e0 Mar 12, 2024
17 checks passed
@ChrisDodd ChrisDodd deleted the cdodd-memalign branch March 12, 2024 20:05
@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants