Skip to content

Commit d66cc85

Browse files
committed
fixup
1 parent 3ff9ee7 commit d66cc85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/jit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void patch_aarch64_trampoline(unsigned char *location, int ordinal, jit_state *s
434434
#define DATA_ALIGN 8
435435
#else
436436
#define TRAMPOLINE_SIZE 0
437-
#define DATA_ALIGN 0
437+
#define DATA_ALIGN 1
438438
#endif
439439

440440
// Generate and patch AArch64 trampolines. The symbols to jump to are stored
@@ -524,7 +524,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
524524
// Round up to the nearest page:
525525
size_t page_size = get_page_size();
526526
assert((page_size & (page_size - 1)) == 0);
527-
size_t code_padding = DATA_ALIGN - ((code_size + state.trampolines.size) & (DATA_ALIGN - 1))
527+
size_t code_padding = DATA_ALIGN - ((code_size + state.trampolines.size) & (DATA_ALIGN - 1));
528528
size_t padding = page_size - ((code_size + state.trampolines.size + code_padding + data_size) & (page_size - 1));
529529
size_t total_size = code_size + state.trampolines.size + data_size + padding;
530530
unsigned char *memory = jit_alloc(total_size);

0 commit comments

Comments
 (0)