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

fix allocated memory misalignment #17

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

ortuman
Copy link
Owner

@ortuman ortuman commented Mar 6, 2024

This PR adds the alignment parameter to the Alloc method of the Arena interface, aiming to ensure that the pointer returned by this method is aligned with this value.

Fixes: #16

@ortuman ortuman added the bug Something isn't working label Mar 6, 2024
@ortuman ortuman self-assigned this Mar 6, 2024
ref: #16

Signed-off-by: Miguel Ángel Ortuño <[email protected]>
@ortuman ortuman force-pushed the ortuman/fix-allocation-misalignment branch from b9d563a to 9af0d70 Compare March 6, 2024 15:36
@ortuman ortuman merged commit 50b62f9 into main Mar 6, 2024
1 check passed
@ortuman ortuman deleted the ortuman/fix-allocation-misalignment branch March 6, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arena may produce misaligned values
1 participant