@@ -3359,20 +3359,19 @@ cc_table_free_i(VALUE ccs_ptr, void *data_ptr)
3359
3359
struct cc_tbl_i_data * data = data_ptr ;
3360
3360
struct rb_class_cc_entries * ccs = (struct rb_class_cc_entries * )ccs_ptr ;
3361
3361
VM_ASSERT (vm_ccs_p (ccs ));
3362
- vm_ccs_free (ccs , data -> alive , data -> objspace , data -> klass );
3362
+ vm_ccs_free (ccs , false , data -> objspace , data -> klass );
3363
3363
return ID_TABLE_CONTINUE ;
3364
3364
}
3365
3365
3366
3366
static void
3367
- cc_table_free (rb_objspace_t * objspace , VALUE klass , bool alive )
3367
+ cc_table_free (rb_objspace_t * objspace , VALUE klass )
3368
3368
{
3369
3369
struct rb_id_table * cc_tbl = RCLASS_CC_TBL (klass );
3370
3370
3371
3371
if (cc_tbl ) {
3372
3372
struct cc_tbl_i_data data = {
3373
3373
.objspace = objspace ,
3374
3374
.klass = klass ,
3375
- .alive = alive ,
3376
3375
};
3377
3376
rb_id_table_foreach_values (cc_tbl , cc_table_free_i , & data );
3378
3377
rb_id_table_free (cc_tbl );
@@ -3530,7 +3529,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
3530
3529
case T_MODULE :
3531
3530
case T_CLASS :
3532
3531
rb_id_table_free (RCLASS_M_TBL (obj ));
3533
- cc_table_free (objspace , obj , FALSE );
3532
+ cc_table_free (objspace , obj );
3534
3533
if (rb_shape_obj_too_complex (obj )) {
3535
3534
st_free_table ((st_table * )RCLASS_IVPTR (obj ));
3536
3535
}
@@ -3659,7 +3658,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
3659
3658
rb_id_table_free (RCLASS_CALLABLE_M_TBL (obj ));
3660
3659
}
3661
3660
rb_class_remove_subclass_head (obj );
3662
- cc_table_free (objspace , obj , FALSE );
3661
+ cc_table_free (objspace , obj );
3663
3662
rb_class_remove_from_module_subclasses (obj );
3664
3663
rb_class_remove_from_super_subclasses (obj );
3665
3664
0 commit comments