Skip to content

Commit

Permalink
std::alloc: using posix_memalign instead of memalign on solarish.
Browse files Browse the repository at this point in the history
simpler code path since small alignments are already taking care of.
close GH-124787
  • Loading branch information
devnexen committed May 11, 2024
1 parent c3202af commit 1e232fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/std/src/sys/pal/unix/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ unsafe impl GlobalAlloc for System {
cfg_if::cfg_if! {
if #[cfg(any(
target_os = "android",
target_os = "illumos",
target_os = "redox",
target_os = "solaris",
target_os = "espidf",
target_os = "horizon",
target_os = "vita",
Expand Down

0 comments on commit 1e232fe

Please sign in to comment.