mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
34d6720fee
commit
5a048829a4
Notes:
git
2021-09-17 10:04:01 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Reference in a new issue