Skip to content

Commit

Permalink
Remove unused dummy_op_array (#17272)
Browse files Browse the repository at this point in the history
This was introduced in b0b43e8 for register allocation code, but is
not used anymore nowadays.
  • Loading branch information
nielsdos authored Dec 26, 2024
1 parent c1c6520 commit b4c5f4e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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!");
Expand Down

0 comments on commit b4c5f4e

Please sign in to comment.