aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-10-21 12:58:51 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-10-21 14:56:48 -0700
commit13bd617ea6fdf72467c593639cf33312a06c330c (patch)
tree9da47089160cfa85d6723256b1e952dcc0843a52 /gc.c
parent87bb0bee6b9843ea32ca6bb48f9e03b1876b7c48 (diff)
downloadruby-13bd617ea6fdf72467c593639cf33312a06c330c.tar.gz
Remove unused class serial
Before object shapes, we were using class serial to invalidate inline caches. Now that we use shape_id for inline cache keys, the class serial is unnecessary. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index f2599adbde..cc7b338062 100644
--- a/gc.c
+++ b/gc.c
@@ -3463,9 +3463,6 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
if (FL_TEST_RAW(obj, RCLASS_SUPERCLASSES_INCLUDE_SELF)) {
xfree(RCLASS_SUPERCLASSES(obj));
}
-#if SIZEOF_SERIAL_T != SIZEOF_VALUE && USE_RVARGC
- xfree(RCLASS(obj)->class_serial_ptr);
-#endif
#if !USE_RVARGC
if (RCLASS_EXT(obj))