From 06bb1feb09e46419d684abdfa7ec2249015defa1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 14 Oct 2020 01:17:39 +0300 Subject: [PATCH] Added missing side exit --- ext/opcache/jit/zend_jit_x86.dasc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index bf190427fb..9918bf365f 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -5533,7 +5533,9 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o | // retval = Z_INDIRECT_P(retval); | GET_Z_PTR r0, r0 | IF_NOT_Z_TYPE r0, IS_UNDEF, >8 - if (type == BP_VAR_IS && not_found_exit_addr) { + if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && type == BP_VAR_R) { + | jmp &exit_addr + } else if (type == BP_VAR_IS && not_found_exit_addr) { | jmp ¬_found_exit_addr } |2: -- 2.40.0