Skip to content

Increase front_padding to min_size instead of skipping the whole hole #1

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 3 commits into from
May 17, 2016

Conversation

phil-opp
Copy link
Member

phil-opp added 3 commits May 17, 2016 16:09
The new code guarantees that the front padding is at least HoleList::min_size() if it's needed. The important line is:

```
let aligned_addr = align_up(hole.addr + HoleList::min_size(), required_align)
```
@phil-opp phil-opp changed the title Increase front_padding to min_size instead of skipping the whole hole if front_padding is too small Increase front_padding to min_size instead of skipping the whole hole May 17, 2016
@phil-opp phil-opp merged commit a71d6cb into master May 17, 2016
@phil-opp phil-opp deleted the fix-too-small-holes branch May 17, 2016 15:17
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.

1 participant