Skip to content

Commit 8078218

Browse files
authored
Fix perf_trampoline alignment to actually align to 32 bits instead of bytes
bit byte confusion here, perf trampoline was previously aligned to 32 bytes, significantly overallocating space per trampoline
1 parent b6c11fe commit 8078218

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/perf_trampoline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ perf_map_init_state(void)
274274
{
275275
PyUnstable_PerfMapState_Init();
276276
trampoline_api.code_padding = 0;
277-
trampoline_api.code_alignment = 32;
277+
trampoline_api.code_alignment = 4;
278278
perf_trampoline_type = PERF_TRAMPOLINE_TYPE_MAP;
279279
return NULL;
280280
}

0 commit comments

Comments
 (0)