com php-src: Fixed reference-counting: ext/opcache/jit/zend_j it_x86.dasc
| From: | Dmitry Stogov | Date: | Mon, 16 Nov 2020 11:51:55 +0000 |
| Subject: | com php-src: Fixed reference-counting: ext/opcache/jit/zend_j it_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114147@lists.php.net to get a copy of this message | ||
Commit: eb6d496a93b66b51476e6d26921036440bab82b6
Author: Dmitry Stogov <dmitry@zend.com> Mon, 16 Nov 2020 14:51:55 +0300
Parents: edf5c1901f81160e8c3ac9827c0b4adc230f1b1a
Branches: PHP-8.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eb6d496a93b66b51476e6d26921036440bab82b6
Log:
Fixed reference-counting
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 8b61d5b092e..15b2420b439 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -12015,6 +12015,13 @@ static int zend_jit_fetch_dim(dasm_State **Dst,
}
}
+#ifdef ZEND_JIT_USE_RC_INFERENCE
+ if ((opline->op2_type & (IS_TMP_VAR|IS_VAR)) && (op1_info &
(MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_ARRAY|MAY_BE_OBJECT))) {
+ /* ASSIGN_DIM may increase refcount of the key */
+ op2_info |= MAY_BE_RCN;
+ }
+#endif
+
|8:
| FREE_OP opline->op2_type, opline->op2, op2_info, 0, opline