From c726c48a3dacd9ca1cb0d96fee98890cb74b37d3 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Tue, 8 Nov 2022 14:09:43 -0500 Subject: Remove numiv from RObject Since object shapes store the capacity of an object, we no longer need the numiv field on RObjects. This gives us one extra slot which we can use to give embedded objects one more instance variable (for a total of 3 ivs). This commit removes the concept of numiv from RObject. --- object.c | 1 - 1 file changed, 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index 9a06500b6b..f51bd3486b 100644 --- a/object.c +++ b/object.c @@ -326,7 +326,6 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj) } rb_shape_set_shape(dest, shape_to_set_on_dest); - RUBY_ASSERT(!RB_TYPE_P(obj, T_OBJECT) || ROBJECT_IV_CAPACITY(dest) == ROBJECT_NUMIV(dest)); } static void -- cgit v1.2.1