Add mmap.MAP_POPULATE from 3.10 (#6964)

This commit is contained in:
Versus
2022-01-20 16:30:27 +03:00
committed by GitHub
parent bcd9ca47f6
commit 556e623a81
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ ALLOCATIONGRANULARITY: int
if sys.platform == "linux":
MAP_DENYWRITE: int
MAP_EXECUTABLE: int
if sys.version_info >= (3, 10):
MAP_POPULATE: int
if sys.platform != "win32":
MAP_ANON: int

View File

@@ -20,7 +20,6 @@ select.epoll.register
# Exists at runtime, but missing from stubs
asyncio.PidfdChildWatcher
asyncio.unix_events.PidfdChildWatcher
mmap.MAP_POPULATE
os.EFD_CLOEXEC
os.EFD_NONBLOCK
os.EFD_SEMAPHORE