-
Notifications
You must be signed in to change notification settings - Fork 347
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
align small malloc-allocations even less, and test that we do #817
Conversation
tests/run-pass/malloc.rs
Outdated
let p = libc::malloc(3); | ||
let addr = p as usize; | ||
let unaligned = addr % 4 != 0; // test that this is not 4-aligned | ||
libc::free(p); // FIXME have to free *after* test; should allow ptr-to-int of dangling ptr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I should rebase before we land this; master will soon allow ptr-to-int for dangling pointers.
☔ The latest upstream changes (presumably #825) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit 029a294 has been approved by |
align small malloc-allocations even less, and test that we do Needs rust-lang/rust#62295 to land. Fixes #812.
☀️ Test successful - checks-travis, status-appveyor |
Needs rust-lang/rust#62295 to land.
Fixes #812.