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.
2 parents 177a6f5 + 77a497d commit bbf2fc9Copy full SHA for bbf2fc9
ext/opcache/jit/zend_jit.c
@@ -5096,7 +5096,7 @@ ZEND_EXT_API void zend_jit_activate(void)
5096
5097
ZEND_EXT_API void zend_jit_deactivate(void)
5098
{
5099
- if (zend_jit_profile_counter) {
+ if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
5100
zend_class_entry *ce;
5101
5102
zend_shared_alloc_lock();
@@ -5114,9 +5114,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
5114
zend_jit_protect();
5115
SHM_PROTECT();
5116
zend_shared_alloc_unlock();
5117
-
5118
- zend_jit_profile_counter = 0;
5119
}
+
+ zend_jit_profile_counter = 0;
5120
5121
5122
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)
0 commit comments