Mark "method" objects as protected by write barrier

All its reference are set with RB_OBJ_WRITE, so they
can be marked as WB protected.
This commit is contained in:
Jean Boussier 2023-02-03 12:59:44 +01:00 committed by Jean Boussier
parent cc9d96b259
commit a8000d06cc
Notes: git 2023-02-03 22:31:42 +00:00

2
proc.c
View File

@ -1630,7 +1630,7 @@ static const rb_data_type_t method_data_type = {
bm_memsize,
bm_compact,
},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
};
VALUE