Remove too_complex GC assertion

Classes from the default namespace are not writable, however they do not
transition to too_complex until they have been written to inside a user
namespace. So this assertion is invalid (as is the previous location it
was) but it doesn't seem to provide us much value.

Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
This commit is contained in:
John Hawthorn 2025-05-21 16:42:33 -07:00
parent 7b10660974
commit 6a16c3e26d
Notes: git 2025-05-22 00:23:31 +00:00

3
gc.c
View File

@ -3284,9 +3284,6 @@ rb_gc_mark_children(void *objspace, VALUE obj)
RCLASS_SET_MAX_IV_COUNT(klass, fields_count);
}
}
else {
VM_ASSERT(rb_shape_obj_too_complex_p(klass));
}
}
break;