mmap: add MADV_FREE on darwin (#7923)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanuandhauntsaninja authored and GitHub committed 2022-05-22 15:30:09 -07:00
1 parent 6e18441a2c
commit 5b1ef8b119
5 files changed
+1 -13

No files matched your search

+1 -1
View File
@@ -79,6 +79,7 @@ if sys.version_info >= (3, 8) and sys.platform != "win32":
MADV_SEQUENTIAL: int
MADV_WILLNEED: int
MADV_DONTNEED: int
MADV_FREE: int
if sys.platform == "linux":
MADV_REMOVE: int
@@ -94,7 +95,6 @@ if sys.version_info >= (3, 8) and sys.platform != "win32":
MADV_NOHUGEPAGE: int
MADV_DONTDUMP: int
MADV_DODUMP: int
MADV_FREE: int
# This Values are defined for FreeBSD but type checkers do not support conditions for these
if sys.platform != "linux" and sys.platform != "darwin":