mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make frozen Time Ractor-shareable
This commit is contained in:
parent
1de063a10b
commit
bdeaa60e7b
1 changed files with 2 additions and 1 deletions
3
time.c
3
time.c
|
@ -1797,7 +1797,8 @@ time_memsize(const void *tobj)
|
|||
static const rb_data_type_t time_data_type = {
|
||||
"time",
|
||||
{time_mark, RUBY_TYPED_DEFAULT_FREE, time_memsize,},
|
||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
||||
0, 0,
|
||||
(RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_FROZEN_SHAREABLE),
|
||||
};
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue