From 7a07deca0f0ceada811f26667d735cf2d4bb179a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 May 2020 14:56:39 +0300 Subject: [PATCH] Fixed JIT with non-HYBRID VM --- ext/opcache/jit/zend_jit_x86.dasc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index ea2dc43408b..50a5d4298a1 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -2297,6 +2297,10 @@ static int zend_jit_hybrid_trace_counter_stub(dasm_State **Dst, uint32_t cost) static int zend_jit_hybrid_func_trace_counter_stub(dasm_State **Dst) { + if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID) { + return 1; + } + |->hybrid_func_trace_counter: return zend_jit_hybrid_trace_counter_stub(Dst, ZEND_JIT_COUNTER_FUNC_COST);