Skip to content

Commit 77a497d

Browse files
committed
Don't JIT after fatal errors
1 parent 798b9d0 commit 77a497d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5113,7 +5113,7 @@ ZEND_EXT_API void zend_jit_activate(void)
51135113

51145114
ZEND_EXT_API void zend_jit_deactivate(void)
51155115
{
5116-
if (zend_jit_profile_counter) {
5116+
if (zend_jit_profile_counter && !CG(unclean_shutdown)) {
51175117
zend_class_entry *ce;
51185118

51195119
zend_shared_alloc_lock();
@@ -5131,9 +5131,9 @@ ZEND_EXT_API void zend_jit_deactivate(void)
51315131
zend_jit_protect();
51325132
SHM_PROTECT();
51335133
zend_shared_alloc_unlock();
5134-
5135-
zend_jit_profile_counter = 0;
51365134
}
5135+
5136+
zend_jit_profile_counter = 0;
51375137
}
51385138

51395139
static void zend_jit_restart_preloaded_op_array(zend_op_array *op_array)

0 commit comments

Comments
 (0)