Skip to content

Commit 6fd0080

Browse files
committed
gh-136459: Use platform-specific type in perf_jit_trampoline
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.
1 parent b13a5df commit 6fd0080

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/perf_jit_trampoline.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ struct BaseEvent {
214214
typedef struct {
215215
struct BaseEvent base; // Common event header
216216
uint32_t process_id; // Process ID where code was generated
217+
#if defined(__APPLE__)
217218
uint64_t thread_id; // Thread ID where code was generated
219+
#else
220+
uint32_t thread_id; // Thread ID where code was generated
221+
#endif
218222
uint64_t vma; // Virtual memory address where code is loaded
219223
uint64_t code_address; // Address of the actual machine code
220224
uint64_t code_size; // Size of the machine code in bytes

0 commit comments

Comments
 (0)