com php-src: Fixed VM interrupt handling: ext/opcache/jit/zend _jit_vm_helpers.c

From: Date: Mon, 20 Jul 2020 20:14:23 +0000
Subject: com php-src: Fixed VM interrupt handling: ext/opcache/jit/zend _jit_vm_helpers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112254@lists.php.net to get a copy of this message
Commit: 774bc760af46897011cdfdc8fe6a1b27219c2b04 Author: Dmitry Stogov <dmitry@zend.com> Mon, 20 Jul 2020 23:14:23 +0300 Parents: 4b13985f257dcdb6c9d42d72a987a77e1f3435b5 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=774bc760af46897011cdfdc8fe6a1b27219c2b04 Log: Fixed VM interrupt handling Changed paths: M ext/opcache/jit/zend_jit_vm_helpers.c Diff: diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index 0fdf7f15dd..c55ca991d4 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -742,6 +742,9 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex, if (rc < 0) { stop = ZEND_JIT_TRACE_STOP_RETURN_HALT; break; + } else if (execute_data == EG(current_execute_data)) { + /* return after interrupt handler */ + rc = 0; } execute_data = EG(current_execute_data); opline = EX(opline); @@ -763,7 +766,9 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex, #ifdef HAVE_GCC_GLOBAL_REGS if (execute_data->prev_execute_data == prev_execute_data) { #else - if (rc == 1) { + if (rc == 0) { + /* pass */ + } else if (rc == 1) { #endif /* Enter into function */ prev_call = NULL;

« previous php.cvs (#112254) next »