mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
e752ea9eb9
gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#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 8fe8a94a7c)
Co-authored-by: stratakis <cstratak@redhat.com>
Miscellaneous source files for the main Python shared library