@@ -248,26 +248,26 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
248248 RB_VM_LOCKING () { if (LIKELY (RCLASS_SUBCLASSES_FIRST (klass ) == NULL )) {
249249 // no subclasses
250250 // check only current class
251-
251+
252252 // invalidate CCs
253253 struct rb_id_table * cc_tbl = RCLASS_WRITABLE_CC_TBL (klass );
254254 invalidate_method_cache_in_cc_table (cc_tbl , mid );
255255 if (RCLASS_CC_TBL_NOT_PRIME_P (klass , cc_tbl )) {
256256 invalidate_method_cache_in_cc_table (RCLASS_PRIME_CC_TBL (klass ), mid );
257257 }
258-
258+
259259 // remove from callable_m_tbl, if exists
260260 struct rb_id_table * cm_tbl = RCLASS_WRITABLE_CALLABLE_M_TBL (klass );
261261 invalidate_callable_method_entry_in_callable_m_table (cm_tbl , mid );
262262 if (RCLASS_CALLABLE_M_TBL_NOT_PRIME_P (klass , cm_tbl )) {
263263 invalidate_callable_method_entry_in_callable_m_table (RCLASS_PRIME_CALLABLE_M_TBL (klass ), mid );
264264 }
265-
265+
266266 RB_DEBUG_COUNTER_INC (cc_invalidate_leaf );
267267 }
268268 else {
269269 const rb_callable_method_entry_t * cme = complemented_callable_method_entry (klass , mid );
270-
270+
271271 if (cme ) {
272272 // invalidate cme if found to invalidate the inline method cache.
273273 if (METHOD_ENTRY_CACHED (cme )) {
@@ -285,29 +285,29 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
285285 else {
286286 klass_housing_cme = RCLASS_ORIGIN (owner );
287287 }
288-
288+
289289 // replace the cme that will be invalid in the all classexts
290290 invalidate_callable_method_entry_in_every_m_table (klass_housing_cme , mid , cme );
291291 }
292-
292+
293293 vm_cme_invalidate ((rb_callable_method_entry_t * )cme );
294294 RB_DEBUG_COUNTER_INC (cc_invalidate_tree_cme );
295-
295+
296296 // In case of refinement ME, also invalidate the wrapped ME that
297297 // could be cached at some callsite and is unreachable from any
298298 // RCLASS_WRITABLE_CC_TBL.
299299 if (cme -> def -> type == VM_METHOD_TYPE_REFINED && cme -> def -> body .refined .orig_me ) {
300300 vm_cme_invalidate ((rb_callable_method_entry_t * )cme -> def -> body .refined .orig_me );
301301 }
302-
302+
303303 if (cme -> def -> iseq_overload ) {
304304 rb_callable_method_entry_t * monly_cme = (rb_callable_method_entry_t * )lookup_overloaded_cme (cme );
305305 if (monly_cme ) {
306306 vm_cme_invalidate (monly_cme );
307307 }
308308 }
309309 }
310-
310+
311311 // invalidate complement tbl
312312 if (METHOD_ENTRY_COMPLEMENTED (cme )) {
313313 VALUE defined_class = cme -> defined_class ;
@@ -318,14 +318,14 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid)
318318 invalidate_complemented_method_entry_in_callable_m_table (prime_cm_table , mid );
319319 }
320320 }
321-
321+
322322 RB_DEBUG_COUNTER_INC (cc_invalidate_tree );
323323 }
324324 else {
325325 invalidate_negative_cache (mid );
326326 }
327327 }
328-
328+
329329 rb_gccct_clear_table (Qnil );
330330}
331331}
0 commit comments