Skip to content

Commit a38bb3a

Browse files
committed
Fix stack alignment
1 parent b1e80ba commit a38bb3a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/opcache/jit/ir

Submodule ir updated 1 file

ext/opcache/jit/zend_jit_ir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,9 @@ static void zend_jit_init_ctx(zend_jit_ctx *jit, uint32_t flags)
24822482
jit->ctx.flags |= IR_FUNCTION;
24832483
/* Stack must be 16 byte aligned */
24842484
/* TODO: select stack size ??? */
2485-
#if defined(IR_TARGET_AARCH64) || defined(_WIN64)
2485+
#if defined(IR_TARGET_AARCH64)
2486+
jit->ctx.fixed_stack_frame_size = sizeof(void*) * 16;
2487+
#elif defined(_WIN64)
24862488
jit->ctx.fixed_stack_frame_size = sizeof(void*) * 15;
24872489
#else
24882490
jit->ctx.fixed_stack_frame_size = sizeof(void*) * 7;

0 commit comments

Comments
 (0)