Skip to content

Commit 6949015

Browse files
committed
ext/opcache/jit/zend_jit: make zend_jit_hot_counters static
1 parent a64cda4 commit 6949015

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ typedef struct _zend_jit_stub {
106106
zend_ulong zend_jit_profile_counter = 0;
107107
int zend_jit_profile_counter_rid = -1;
108108

109-
int16_t zend_jit_hot_counters[ZEND_HOT_COUNTERS_COUNT];
109+
#define ZEND_HOT_COUNTERS_COUNT 128
110+
static int16_t zend_jit_hot_counters[ZEND_HOT_COUNTERS_COUNT];
110111

111112
const zend_op *zend_jit_halt_op = NULL;
112113
static int zend_jit_vm_kind = 0;

ext/opcache/jit/zend_jit_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,6 @@ extern int zend_jit_profile_counter_rid;
233233

234234
/* Hot Counters */
235235

236-
#define ZEND_HOT_COUNTERS_COUNT 128
237-
238-
extern int16_t zend_jit_hot_counters[ZEND_HOT_COUNTERS_COUNT];
239-
240236
static zend_always_inline zend_long zend_jit_hash(const void *ptr)
241237
{
242238
uintptr_t x;

0 commit comments

Comments
 (0)