Skip to content

Commit 42c03b9

Browse files
committed
Auto merge of rust-lang#124798 - devnexen:illumos_memalign_fix, r=RalfJung
std::alloc: use posix_memalign instead of memalign on solarish `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 rust-langGH-124787
2 parents adaf521 + 6c546e7 commit 42c03b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

std/src/sys/pal/unix/alloc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ unsafe impl GlobalAlloc for System {
6161
cfg_if::cfg_if! {
6262
if #[cfg(any(
6363
target_os = "android",
64-
target_os = "illumos",
6564
target_os = "redox",
66-
target_os = "solaris",
6765
target_os = "espidf",
6866
target_os = "horizon",
6967
target_os = "vita",

0 commit comments

Comments
 (0)