From b5e2b64adc76fa8fe80509fac40a8a69d41bc4a2 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 21 Jul 2020 22:58:24 +0300 Subject: [PATCH] Fix deoptimization info and corresponding memory leaks --- ext/opcache/jit/zend_jit_x86.dasc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 9bf9f89540..7b21de9626 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -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 -- 2.50.1