Skip to content

Commit dcedc31

Browse files
committed
Use proper "cost"
1 parent ef45d4d commit dcedc31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static zend_always_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_trace_c
289289
const zend_op *opline = EX(opline);
290290
#endif
291291

292-
*(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= ZEND_JIT_TRACE_FUNC_COST;
292+
*(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= cost;
293293

294294
if (UNEXPECTED(*(ZEND_OP_TRACE_INFO(opline, offset)->counter) <= 0)) {
295295
*(ZEND_OP_TRACE_INFO(opline, offset)->counter) = ZEND_JIT_TRACE_COUNTER_INIT;

0 commit comments

Comments
 (0)