@@ -7163,32 +7163,34 @@ static void zend_jit_stop_hot_trace_counters(zend_op_array *op_array)
71637163 SHM_UNPROTECT ();
71647164 for (i = 0 ; i < op_array -> last ; i ++ ) {
71657165 /* Opline with Jit-ed code handler is skipped. */
7166- if (jit_extension -> trace_info [i ].trace_flags &
7167- (ZEND_JIT_TRACE_JITED |ZEND_JIT_TRACE_BLACKLISTED )) {
7168- continue ;
7169- }
7170- if (jit_extension -> trace_info [i ].trace_flags &
7171- (ZEND_JIT_TRACE_START_LOOP | ZEND_JIT_TRACE_START_ENTER | ZEND_JIT_TRACE_START_RETURN )) {
7166+ if (jit_extension -> trace_info [i ].trace_flags &
7167+ (ZEND_JIT_TRACE_JITED |ZEND_JIT_TRACE_BLACKLISTED )) {
7168+ continue ;
7169+ }
7170+ if (jit_extension -> trace_info [i ].trace_flags &
7171+ (ZEND_JIT_TRACE_START_LOOP | ZEND_JIT_TRACE_START_ENTER | ZEND_JIT_TRACE_START_RETURN )) {
71727172 op_array -> opcodes [i ].handler = jit_extension -> trace_info [i ].orig_handler ;
7173- }
7174- }
7173+ }
7174+ }
71757175 SHM_PROTECT ();
71767176 zend_shared_alloc_unlock ();
71777177}
71787178
71797179/* Get the tracing op_array. */
7180- static void zend_jit_stop_persistent_op_array (zend_op_array * op_array ) {
7181- zend_func_info * func_info = ZEND_FUNC_INFO (op_array );
7182- if (!func_info ) {
7180+ static void zend_jit_stop_persistent_op_array (zend_op_array * op_array )
7181+ {
7182+ zend_func_info * func_info = ZEND_FUNC_INFO (op_array );
7183+ if (!func_info ) {
71837184 return ;
71847185 }
7185- if (func_info -> flags & ZEND_FUNC_JIT_ON_HOT_TRACE ) {
7186- zend_jit_stop_hot_trace_counters (op_array );
7187- }
7186+ if (func_info -> flags & ZEND_FUNC_JIT_ON_HOT_TRACE ) {
7187+ zend_jit_stop_hot_trace_counters (op_array );
7188+ }
71887189}
71897190
71907191/* Get all op_arrays with counter handler. */
7191- static void zend_jit_stop_persistent_script (zend_persistent_script * script ) {
7192+ static void zend_jit_stop_persistent_script (zend_persistent_script * script )
7193+ {
71927194 zend_class_entry * ce ;
71937195 zend_op_array * op_array ;
71947196
@@ -7208,7 +7210,8 @@ static void zend_jit_stop_persistent_script(zend_persistent_script *script) {
72087210}
72097211
72107212/* Get all scripts which are accelerated by JIT */
7211- static void zend_jit_stop_counter_handlers () {
7213+ static void zend_jit_stop_counter_handlers ()
7214+ {
72127215 for (uint32_t i = 0 ; i < ZCSG (hash ).max_num_entries ; i ++ ) {
72137216 zend_accel_hash_entry * cache_entry ;
72147217 for (cache_entry = ZCSG (hash ).hash_table [i ]; cache_entry ; cache_entry = cache_entry -> next ) {
0 commit comments