Project

General

Profile

Actions

Bug #17850

closed

`PAGE_SIZE` is no longer a constant for macOS

Added by xtkoba (Tee KOBAYASHI) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:103727]

Description

Build failure for macOS Big Sur (ARM) 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

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #17752: Enable -Wundef for C extensions in repositoryClosedEregon (Benoit Daloze)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0