From 6a16c3e26d8323e8179801fa77d8d2541cc8a261 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 21 May 2025 16:42:33 -0700 Subject: [PATCH] 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 --- gc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gc.c b/gc.c index c3f0a71df1..28ec256586 100644 --- a/gc.c +++ b/gc.c @@ -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;