com php-src: Fix deoptimization info and corresponding memory leaks: ext/opcache/jit/zend_jit_x86.dasc
| From: | Dmitry Stogov | Date: | Tue, 21 Jul 2020 19:58:24 +0000 |
| Subject: | com php-src: Fix deoptimization info and corresponding memory leaks: ext/opcache/jit/zend_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112302@lists.php.net to get a copy of this message | ||
Commit: b5e2b64adc76fa8fe80509fac40a8a69d41bc4a2
Author: Dmitry Stogov <dmitry@zend.com> Tue, 21 Jul 2020 22:58:24 +0300
Parents: b44169e9ddd46d32342c68493eebf446e707fbde
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b5e2b64adc76fa8fe80509fac40a8a69d41bc4a2
Log:
Fix deoptimization info and corresponding memory leaks
Changed paths:
M ext/opcache/jit/zend_jit_x86.dasc
Diff:
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