Skip to content

Commit b5e2b64

Browse files
committed
Fix deoptimization info and corresponding memory leaks
1 parent b44169e commit b5e2b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10405,11 +10405,11 @@ static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, cons
1040510405

1040610406
if ((opline->op1_type & (IS_VAR|IS_TMP_VAR))
1040710407
&& !(op1_info & AVOID_REFCOUNTING)) {
10408-
flags = ZEND_JIT_EXIT_FREE_OP1;
10408+
flags |= ZEND_JIT_EXIT_FREE_OP1;
1040910409
}
1041010410
if ((opline->op2_type & (IS_VAR|IS_TMP_VAR))
1041110411
&& (op2_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))) {
10412-
flags = ZEND_JIT_EXIT_FREE_OP2;
10412+
flags |= ZEND_JIT_EXIT_FREE_OP2;
1041310413
}
1041410414
if ((res_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))
1041510415
&& (ssa_op+1)->op1_use == ssa_op->result_def

0 commit comments

Comments
 (0)