From 4d58aba7fa13c9a028d49fbdc3ed93c48ad17614 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 25 Dec 2024 23:07:36 +0100 Subject: [PATCH] Remove unused dummy_op_array This was introduced in b0b43e86ae for register allocation code, but is not used anymore nowadays. --- ext/opcache/jit/zend_jit_trace.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 7c610b6afac0..e4b3ad3017e0 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -16,7 +16,6 @@ +----------------------------------------------------------------------+ */ -static zend_op_array dummy_op_array; static zend_jit_trace_info *zend_jit_traces = NULL; static const void **zend_jit_exit_groups = NULL; @@ -75,9 +74,6 @@ static void zend_jit_trace_startup(bool reattached) } } - memset(&dummy_op_array, 0, sizeof(dummy_op_array)); - dummy_op_array.fn_flags = ZEND_ACC_DONE_PASS_TWO; - JIT_G(exit_counters) = calloc(JIT_G(max_exit_counters), 1); if (JIT_G(exit_counters) == NULL) { zend_accel_error_noreturn(ACCEL_LOG_FATAL, "Could not allocate JIT exit counters buffer!");