Skip to content

Commit 839215c

Browse files
committed
Initialize alignment
1 parent 95e5c28 commit 839215c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/perf_jit_trampoline.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ static void* perf_map_jit_init(void) {
10881088
size_t eh_frame_size = calculate_eh_frame_size();
10891089
size_t unwind_data_size = sizeof(EhFrameHeader) + eh_frame_size;
10901090
trampoline_api.code_padding = round_up(unwind_data_size, 16);
1091+
trampoline_api.code_alignment = 32;
10911092

10921093
return &perf_jit_map_state;
10931094
}
@@ -1347,4 +1348,4 @@ _PyPerf_Callbacks _Py_perfmap_jit_callbacks = {
13471348
&perf_map_jit_fini, // Cleanup function
13481349
};
13491350

1350-
#endif /* PY_HAVE_PERF_TRAMPOLINE */
1351+
#endif /* PY_HAVE_PERF_TRAMPOLINE */

0 commit comments

Comments
 (0)