We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 86e2a48 + d0c336a commit ba0ecaaCopy full SHA for ba0ecaa
ext/opcache/jit/zend_jit_trace.c
@@ -7506,6 +7506,11 @@ static zend_jit_trace_stop zend_jit_compile_root_trace(zend_jit_trace_rec *trace
7506
t->polymorphism = 0;
7507
t->jmp_table_size = 0;
7508
t->op_array = trace_buffer[0].op_array;
7509
+ if (!(t->op_array->fn_flags & ZEND_ACC_IMMUTABLE)) {
7510
+ zend_jit_op_array_trace_extension *jit_extension =
7511
+ (zend_jit_op_array_trace_extension*)ZEND_FUNC_INFO(t->op_array);
7512
+ t->op_array = jit_extension->op_array;
7513
+ }
7514
t->opline = trace_buffer[1].opline;
7515
t->exit_info = exit_info;
7516
t->stack_map = NULL;
0 commit comments