Skip to content

Commit

Permalink
Fix deoptimization info and corresponding memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jul 21, 2020
1 parent b44169e commit b5e2b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/opcache/jit/zend_jit_x86.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -10405,11 +10405,11 @@ static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, cons

if ((opline->op1_type & (IS_VAR|IS_TMP_VAR))
&& !(op1_info & AVOID_REFCOUNTING)) {
flags = ZEND_JIT_EXIT_FREE_OP1;
flags |= ZEND_JIT_EXIT_FREE_OP1;
}
if ((opline->op2_type & (IS_VAR|IS_TMP_VAR))
&& (op2_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))) {
flags = ZEND_JIT_EXIT_FREE_OP2;
flags |= ZEND_JIT_EXIT_FREE_OP2;
}
if ((res_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))
&& (ssa_op+1)->op1_use == ssa_op->result_def
Expand Down

0 comments on commit b5e2b64

Please sign in to comment.