From: Dmitry Stogov Date: Thu, 7 May 2020 21:56:03 +0000 (+0300) Subject: Use proper "cost" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcedc31979c006f685d80d8070bd9dc1a0fe42dd;p=php Use proper "cost" --- 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;