[前][次][番号順一覧][スレッド一覧]

ruby-changes:73767

From: Aaron <ko1@a...>
Date: Thu, 29 Sep 2022 01:25:11 +0900 (JST)
Subject: [ruby-changes:73767] 3e7c42a239 (master): Shapes wrappers shouldn't mark the shape

https://git.ruby-lang.org/ruby.git/commit/?id=3e7c42a239

From 3e7c42a239d944ba6025e40bcceef249db93b852 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
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(-)

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) https://github.com/ruby/ruby/blob/trunk/shape.c#L298
 
 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


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]