Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 28, 2026

mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current check never detects mmap failures, so jitdump initialization proceeds even when the memory mapping fails.

(cherry picked from commit 8fe8a94)

…hon#143713)

mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current
check never detects mmap failures, so jitdump initialization proceeds
even when the memory mapping fails.

(cherry picked from commit 8fe8a94)
@vstinner vstinner enabled auto-merge (squash) January 28, 2026 13:53
@vstinner vstinner merged commit e752ea9 into python:3.13 Jan 28, 2026
42 checks passed
@vstinner vstinner deleted the mmap13 branch January 28, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants