From: peter@... Date: 2021-05-05T12:19:30+00:00 Subject: [ruby-core:103735] [Ruby master Bug#17850] `PAGE_SIZE` is no longer a constant for macOS Issue #17850 has been updated by peterzhu2118 (Peter Zhu). Assignee set to peterzhu2118 (Peter Zhu) ---------------------------------------- Bug #17850: `PAGE_SIZE` is no longer a constant for macOS https://bugs.ruby-lang.org/issues/17850#change-91830 * Author: xtkoba (Tee KOBAYASHI) * Status: Open * Priority: Normal * Assignee: peterzhu2118 (Peter Zhu) * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- [Build failure for macOS Big Sur (ARM)](http://rubyci.s3.amazonaws.com/osx1100arm/ruby-master/log/20210505T014504Z.log.html.gz) due to `-Wundef` (#17752). It is said in https://www.wwdcnotes.com/notes/wwdc20/10214/ that: * Native page size on Intel is 4 kB, on Apple Silicon it's 16 kB: therefore the PAGE_SIZE macro is no longer a constant. Use: * PAGE_MAX_SIZE for a compile-time upper bound * vm_page_size to read the actual value at runtime -- https://bugs.ruby-lang.org/ Unsubscribe: