mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Shapes wrappers shouldn't mark the shape
We don't allocate shapes out of the GC anymore, so we shouldn't mark those pointers.
This commit is contained in:
parent
414f1066b1
commit
3e7c42a239
1 changed files with 1 additions and 7 deletions
8
shape.c
8
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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue