com php-src: Fixed inconsistent VM stack state: ext/opcache/jit /zend_jit_x86.dasc
| From: | Dmitry Stogov | Date: | Mon, 16 Nov 2020 10:19:44 +0000 |
| Subject: | com php-src: Fixed inconsistent VM stack state: ext/opcache/jit /zend_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114146@lists.php.net to get a copy of this message | ||
Commit: bd321df47925db2186d6a95e16e9ebca036b08ca
Author: Dmitry Stogov <dmitry@zend.com> Mon, 16 Nov 2020 13:19:44 +0300
Parents: 64dc79f90649f2ca3522ae8d658da4d5707dba29
Branches: PHP-8.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bd321df47925db2186d6a95e16e9ebca036b08ca
Log:
Fixed inconsistent VM stack state
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 42b0e1940c0..8b61d5b092e 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -10092,7 +10092,10 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const
zend
if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE ||
!JIT_G(current_frame) ||
!JIT_G(current_frame)->call ||
- !TRACE_FRAME_IS_NESTED(JIT_G(current_frame)->call)) {
+ !TRACE_FRAME_IS_NESTED(JIT_G(current_frame)->call) ||
+ prev_opline->opcode == ZEND_SEND_UNPACK ||
+ prev_opline->opcode == ZEND_SEND_ARRAY ||
+ prev_opline->opcode == ZEND_CHECK_UNDEF_ARGS) {
| // zend_vm_stack_free_call_frame(call);
| test byte [RX + offsetof(zend_execute_data, This.u1.type_info) + 2], (ZEND_CALL_ALLOCATED
>> 16)