mutex_mark is (basically) NULL, so we don't have any references to mark.
This means we should safely be able to mark Mutex as WB_PROTECTED
without changing anything else.
This commit is contained in:
John Hawthorn 2021-09-15 02:40:42 -07:00 коммит произвёл Koichi Sasada
Родитель 34d6720fee
Коммит 5a048829a4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -125,7 +125,7 @@ mutex_memsize(const void *ptr)
static const rb_data_type_t mutex_data_type = { static const rb_data_type_t mutex_data_type = {
"mutex", "mutex",
{mutex_mark, mutex_free, mutex_memsize,}, {mutex_mark, mutex_free, mutex_memsize,},
0, 0, RUBY_TYPED_FREE_IMMEDIATELY 0, 0, RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_FREE_IMMEDIATELY
}; };
static rb_mutex_t * static rb_mutex_t *