Skip to content

Commit e77d83d

Browse files
committed
Lower fixed_stack_frame_size
1 parent c5823ae commit e77d83d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,9 @@ static void zend_jit_init_ctx(zend_jit_ctx *jit, uint32_t flags)
27342734
jit->ctx.flags |= IR_FUNCTION;
27352735
/* Stack must be 16 byte aligned */
27362736
/* TODO: select stack size ??? */
2737-
#if defined(IR_TARGET_AARCH64)
2737+
#if ZEND_VM_KIND == ZEND_VM_KIND_TAILCALL
2738+
jit->ctx.fixed_stack_frame_size = sizeof(void*) * 5; /* 5 spill slots (8 bytes) or 10 spill slots (4 bytes) */
2739+
#elif defined(IR_TARGET_AARCH64)
27382740
jit->ctx.flags |= IR_USE_FRAME_POINTER;
27392741
jit->ctx.fixed_stack_frame_size = sizeof(void*) * 16; /* 10 saved registers and 6 spill slots (8 bytes) */
27402742
#elif defined(_WIN64)

0 commit comments

Comments
 (0)