Skip to content

gh-142490: for macOS, use vm_page_size directly from the kernel header#142491

Closed
LumioseSil wants to merge 1 commit intopython:mainfrom
LumioseSil:swiftly
Closed

gh-142490: for macOS, use vm_page_size directly from the kernel header#142491
LumioseSil wants to merge 1 commit intopython:mainfrom
LumioseSil:swiftly

Conversation

@LumioseSil
Copy link
Copy Markdown
Contributor

@LumioseSil LumioseSil commented Dec 9, 2025

We do not need to call sysconf for this at all.

… header

We do not need to call sysconf for this at all.
@ronaldoussoren
Copy link
Copy Markdown
Contributor

IMHO this PR is not needed because this complicates the code base a little on a cold path (the value is calculated once) on old versions of macOS (on modern systems ctypes uses ffi_closure_alloc instead of the older alternative that uses the more_core function).

@LumioseSil LumioseSil closed this Dec 10, 2025
@LumioseSil LumioseSil deleted the swiftly branch December 10, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants