We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798b9d0 commit 77a497dCopy full SHA for 77a497d
ext/opcache/jit/zend_jit.c
@@ -5113,7 +5113,7 @@ ZEND_EXT_API void zend_jit_activate(void)
5113
5114
ZEND_EXT_API void zend_jit_deactivate(void)
5115
{
5116
- if (zend_jit_profile_counter) {
+ if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
5117
zend_class_entry *ce;
5118
5119
zend_shared_alloc_lock();
@@ -5131,9 +5131,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
5131
zend_jit_protect();
5132
SHM_PROTECT();
5133
zend_shared_alloc_unlock();
5134
-
5135
- zend_jit_profile_counter = 0;
5136
}
+
+ zend_jit_profile_counter = 0;
5137
5138
5139
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)
0 commit comments