1
0
Fork 0
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:
Nobuyoshi Nakada 2021-06-18 11:58:15 +09:00
parent 1de063a10b
commit bdeaa60e7b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

3
time.c
View file

@ -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