Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  JIT: Fixed exit from CALL VM with GCC Global Register Variables
This commit is contained in:
Dmitry Stogov 2021-09-13 11:40:45 +03:00
commit 971142a12a
3 changed files with 8 additions and 3 deletions

View file

@ -318,7 +318,10 @@ static zend_always_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_trace_c
if (UNEXPECTED(*(ZEND_OP_TRACE_INFO(opline, offset)->counter) <= 0)) {
*(ZEND_OP_TRACE_INFO(opline, offset)->counter) = ZEND_JIT_COUNTER_INIT;
if (UNEXPECTED(zend_jit_trace_hot_root(execute_data, opline) < 0)) {
#ifndef HAVE_GCC_GLOBAL_REGS
#ifdef HAVE_GCC_GLOBAL_REGS
opline = NULL;
return;
#else
return -1;
#endif
}