diff options
Diffstat (limited to 'ext/opcache/jit/zend_jit_trace.c')
-rw-r--r-- | ext/opcache/jit/zend_jit_trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 853be7517a..69c4f79fa8 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -7629,6 +7629,11 @@ static void zend_jit_trace_init_caches(void) static void zend_jit_trace_reset_caches(void) { JIT_G(tracing) = 0; +#ifdef ZTS + if (!JIT_G(exit_counters)) { + JIT_G(exit_counters) = calloc(JIT_G(max_exit_counters), 1); + } +#endif } static void zend_jit_trace_restart(void) |