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

Make sure to align pointers in alloc_layout_slow #45

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

fitzgen
Copy link
Owner

@fitzgen fitzgen commented Nov 7, 2019

We didn't used to need to align pointers in alloc_layout_slow when we were bumping upwards, since we made sure that the chunk itself had the proper alignment, and we were using the start of the chunk for this allocation. Now that we are bumping downwards, we need to round down to the proper alignment.

Fixes #43

cc @TethysSvensson

We didn't used to need to align pointers in `alloc_layout_slow` when we were
bumping upwards, since we made sure that the chunk itself had the proper
alignment, and we were using the start of the chunk for this allocation. Now
that we are bumping downwards, we need to round down to the proper alignment.

Fixes #43
@fitzgen fitzgen merged commit 3d8dc44 into master Nov 7, 2019
@fitzgen fitzgen deleted the alloc-layout-slow-alignment branch November 7, 2019 21:14
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.

alloc_layout_slow does not respect layout alignment
1 participant