Skip to content

Commit 6a16c3e

Browse files
jhawthorntenderlove
andcommitted
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>
1 parent 7b10660 commit 6a16c3e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

gc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,9 +3284,6 @@ rb_gc_mark_children(void *objspace, VALUE obj)
32843284
RCLASS_SET_MAX_IV_COUNT(klass, fields_count);
32853285
}
32863286
}
3287-
else {
3288-
VM_ASSERT(rb_shape_obj_too_complex_p(klass));
3289-
}
32903287
}
32913288

32923289
break;

0 commit comments

Comments
 (0)