Avoid using MAP_JIT mmap flag on macOS < 10.14 #48
No reviewers
Labels
No labels
2230
2243
App version
Apple OS errata
Apple SDK
bug
bugsnag
build
dlt
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: chris/Cog#48
Loading…
Reference in a new issue
No description provided.
Delete branch "map_jit_backwards_compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If compiled with the macOS 10.14 SDK, MAP_JIT will be defined and passed as a flag to mmap to allocate memory for the dynarec, but passing this flag will cause mmap to fail if running on macOS 10.13 and below; on macOS check the OS version at runtime, set and cache the appropriate flags for mmap.
Fixes #47