diff options
author | Aaron Patterson <[email protected]> | 2023-03-10 08:50:43 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-03-10 08:50:43 -0800 |
commit | 365fed6369cf490f44878322fcaeddf9dfcb02f5 (patch) | |
tree | a0c756ecd41538f82cfaa9acb0388e34e13f7ae0 /gc.c | |
parent | f98a7fd28d6eedfb80e5d7d1a92d67aa3dc4783f (diff) |
Revert "Allow classes and modules to become too complex"
This reverts commit 69465df4242f3b2d8e55fbe18d7c45b47b40a626.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -3554,11 +3554,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj) case T_CLASS: rb_id_table_free(RCLASS_M_TBL(obj)); cc_table_free(objspace, obj, FALSE); - if (rb_shape_obj_too_complex(obj)) { - RB_DEBUG_COUNTER_INC(obj_obj_too_complex); - rb_id_table_free(RCLASS_TABLE_IVPTR(obj)); - } - else if (RCLASS_IVPTR(obj)) { + if (RCLASS_IVPTR(obj)) { xfree(RCLASS_IVPTR(obj)); } if (RCLASS_CONST_TBL(obj)) { |