summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-09-28 09:24:02 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2022-09-28 09:24:35 -0700
commit3e7c42a239d944ba6025e40bcceef249db93b852 (patch)
tree6c15f875949591c9c8f66c98d1d59acd6e4d1d8e /shape.c
parent414f1066b174fbd35b73cedd0ef53d4bfa1254fd (diff)
downloadruby-3e7c42a239d944ba6025e40bcceef249db93b852.tar.gz
Shapes wrappers shouldn't mark the shape
We don't allocate shapes out of the GC anymore, so we shouldn't mark those pointers.
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c8
1 files changed, 1 insertions, 7 deletions
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
};