-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
std::alloc: use posix_memalign instead of memalign on solarish #124798
Conversation
This comment has been minimized.
This comment has been minimized.
3fddb3b
to
1590c9d
Compare
1590c9d
to
a3994e5
Compare
Some changes occurred in src/tools/cargo cc @ehuss |
cbd9055
to
2fffb3a
Compare
2fffb3a
to
a84ac38
Compare
If we do not care of solaris < 10 then it s possible indeed. |
https://doc.rust-lang.org/rustc/platform-support.html explicitly says "Solaris 11" so I think indeed we do not care about Solaris 10 or older. |
a84ac38
to
1e232fe
Compare
simpler code path since small alignments are already taking care of. close rust-langGH-124787
LGTM, thanks! |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b71fa82): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 677.159s -> 675.425s (-0.26%) |
memalign
on Solarish requires the alignment to be at least the size of a pointer, which we did not honor.posix_memalign
also requires that, but that code path already takes care of this requirement.close GH-124787