Open pitust opened 23 hours ago
Foe context: jemalloc does not work on Linux with 16k pages, it hardcodes 4k: https://github.com/jemalloc/jemalloc/issues/467 rustc works, so I suspect it's not being built with jemalloc on that target. Miris jenalloc logic is unconditional and not coupled to bootstrap jenalloc logic, which seems like the problem.
That issue makes it sound like jemalloc should be able to work on this system (i.e., the hardcoding was removed?) if we (or maybe jemalloc-sys?) compiled it with e.g. a 64k "page" target? At least, that's my impression of the closing comment.
Yes, we could compile jemalloc to make it work properly (and actually maybe that's what's already happening for rustc? unsure)
I tried to run
cargo miri run
in (any) workspace on Asahi Linux (which has 16k page kernels)I expected to see this happen: The program runs under miri similarly to how rustc works
Instead, this happened:
Meta
rustc --version --verbose
: