-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support C11 free() #51
Comments
Maybe we waste a few extra bytes in the aligned space... need a "magic" marker that indicates that this was allocated by aligned_malloc(). If the sentinel matches, then we call the aligned version. |
👍 I would be all for this. It is good to mimic how GLIBC behaves. And I don't think the costs outweigh the benefit |
I implemented this in #91 but it is mostly just posted for review at this moment as it needs more testing. I tried it out in emu |
With aligned_alloc() in the C11 standard, free() is called to free memory, rather than an equivalent
aligned_free()
.We should update our library with some logic that can be used to correctly call aligned_free() if free() is used instead.
The text was updated successfully, but these errors were encountered: