Skip to content

Commit 59ced40

Browse files
committed
If HYBRID VM can't provide some stack space for JIT code in "red zone" then JIT has to reserve stack space itself
1 parent c6e941f commit 59ced40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3376,7 +3376,7 @@ static void zend_jit_init_ctx(zend_jit_ctx *jit, uint32_t flags)
33763376
jit->ctx.fixed_stack_frame_size = 0;
33773377
#else
33783378
jit->ctx.fixed_stack_red_zone = 0;
3379-
jit->ctx.fixed_stack_frame_size = 0;
3379+
jit->ctx.fixed_stack_frame_size = 16;
33803380
#endif
33813381
#if defined(IR_TARGET_X86) || defined(IR_TARGET_X64)
33823382
jit->ctx.fixed_regset |= (1<<5); /* prevent %rbp (%r5) usage */

0 commit comments

Comments
 (0)