From 3e7c42a239d944ba6025e40bcceef249db93b852 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 28 Sep 2022 09:24:02 -0700 Subject: Shapes wrappers shouldn't mark the shape We don't allocate shapes out of the GC anymore, so we shouldn't mark those pointers. --- shape.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'shape.c') diff --git a/shape.c b/shape.c index 82d284b8fe..ba195c3c96 100644 --- a/shape.c +++ b/shape.c @@ -298,18 +298,12 @@ rb_shape_set_shape(VALUE obj, rb_shape_t* shape) VALUE rb_cShape; -static void -shape_mark(void *ptr) -{ - rb_gc_mark((VALUE)ptr); -} - /* * Exposing Shape to Ruby via RubyVM.debug_shape */ static const rb_data_type_t shape_data_type = { "Shape", - {shape_mark, NULL, NULL,}, + {NULL, NULL, NULL,}, 0, 0, RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED }; -- cgit v1.2.1