From dcedc31979c006f685d80d8070bd9dc1a0fe42dd Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 8 May 2020 00:56:03 +0300 Subject: [PATCH] Use proper "cost" --- ext/opcache/jit/zend_jit_vm_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index c4a515330d..6def59f914 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -289,7 +289,7 @@ static zend_always_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_trace_c const zend_op *opline = EX(opline); #endif - *(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= ZEND_JIT_TRACE_FUNC_COST; + *(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= cost; if (UNEXPECTED(*(ZEND_OP_TRACE_INFO(opline, offset)->counter) <= 0)) { *(ZEND_OP_TRACE_INFO(opline, offset)->counter) = ZEND_JIT_TRACE_COUNTER_INIT; -- 2.50.1