https://github.com/python/cpython/commit/e41c1ce585827f92dab9b7a7fc3df2bda2f817fe
commit: e41c1ce585827f92dab9b7a7fc3df2bda2f817fe
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2025-07-23T10:20:42+02:00
summary:
gh-136459: Use platform-specific type in perf_jit_trampoline (GH-137031)
gh-136461 added perf support for macOS, with ifdefs around all changes
except increasing thread_id to 64 bits.
Make that change Apple-specific too.
files:
M Python/perf_jit_trampoline.c
diff --git a/Python/perf_jit_trampoline.c b/Python/perf_jit_trampoline.c
index 3dcbcd34003102..8732be973616d4 100644
--- a/Python/perf_jit_trampoline.c
+++ b/Python/perf_jit_trampoline.c
@@ -214,7 +214,11 @@ struct BaseEvent {
typedef struct {
struct BaseEvent base; // Common event header
uint32_t process_id; // Process ID where code was generated
+#if defined(__APPLE__)
uint64_t thread_id; // Thread ID where code was generated
+#else
+ uint32_t thread_id; // Thread ID where code was generated
+#endif
uint64_t vma; // Virtual memory address where code is loaded
uint64_t code_address; // Address of the actual machine code
uint64_t code_size; // Size of the machine code in bytes
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]