зеркало из https://github.com/github/ruby.git
Add WB_PROTECTED to mutexes
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:
Родитель
34d6720fee
Коммит
5a048829a4
|
@ -125,7 +125,7 @@ mutex_memsize(const void *ptr)
|
|||
static const rb_data_type_t mutex_data_type = {
|
||||
"mutex",
|
||||
{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 *
|
||||
|
|
Загрузка…
Ссылка в новой задаче