Enable write barriers on File::Stat

It holds no reference, so no changes needed.
This commit is contained in:
Jean Boussier 2023-02-03 13:25:20 +01:00 committed by Jean Boussier
parent faa4c2279a
commit fe5ce1ee41
Notes: git 2023-02-03 14:37:20 +00:00

2
file.c
View File

@ -493,7 +493,7 @@ stat_memsize(const void *p)
static const rb_data_type_t stat_data_type = {
"stat",
{NULL, RUBY_TYPED_DEFAULT_FREE, stat_memsize,},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
};
static VALUE