@@ -7163,32 +7163,34 @@ static void zend_jit_stop_hot_trace_counters(zend_op_array *op_array)
7163
7163
SHM_UNPROTECT ();
7164
7164
for (i = 0 ; i < op_array -> last ; i ++ ) {
7165
7165
/* 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 )) {
7172
7172
op_array -> opcodes [i ].handler = jit_extension -> trace_info [i ].orig_handler ;
7173
- }
7174
- }
7173
+ }
7174
+ }
7175
7175
SHM_PROTECT ();
7176
7176
zend_shared_alloc_unlock ();
7177
7177
}
7178
7178
7179
7179
/* 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 ) {
7183
7184
return ;
7184
7185
}
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
+ }
7188
7189
}
7189
7190
7190
7191
/* 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
+ {
7192
7194
zend_class_entry * ce ;
7193
7195
zend_op_array * op_array ;
7194
7196
@@ -7208,7 +7210,8 @@ static void zend_jit_stop_persistent_script(zend_persistent_script *script) {
7208
7210
}
7209
7211
7210
7212
/* 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
+ {
7212
7215
for (uint32_t i = 0 ; i < ZCSG (hash ).max_num_entries ; i ++ ) {
7213
7216
zend_accel_hash_entry * cache_entry ;
7214
7217
for (cache_entry = ZCSG (hash ).hash_table [i ]; cache_entry ; cache_entry = cache_entry -> next ) {
0 commit comments