Skip to content

Commit e41c1ce

Browse files
authored
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.
1 parent b13a5df commit e41c1ce

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy