Commit Graph

8 Commits

Author SHA1 Message Date
Feoramund
4b08e8cfff Support getting page sizes at runtime 2025-05-11 14:29:58 -04:00
Feoramund
f5226d01f7 Revert to unoptimized behavior on Darwin 2025-05-08 11:06:02 -04:00
Feoramund
4a31e1f635 Ensure remapped memory has desired protection on Darwin 2025-05-08 11:06:02 -04:00
Feoramund
0947914e0d Use mach_task_self_ global instead 2025-05-08 11:06:02 -04:00
Feoramund
e86bd35387 Optimize virtual memory resizing on Darwin 2025-05-08 11:06:02 -04:00
Feoramund
ef72a373b2 Use VM_INHERIT_COPY instead
This aligns with the use of `MAP_PRIVATE` in `mmap`-based
implementations.
2025-05-08 11:06:01 -04:00
Feoramund
4c59019a57 Restrict superpage allocation on Darwin to AMD64 and 2MiB
There's a possibility that Darwin does not support anything else, in
terms of size or architecture.
2025-05-08 11:06:01 -04:00
Feoramund
f142043db9 Add virtual memory procedures to base 2025-05-08 11:06:00 -04:00