summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-18 11:58:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-18 11:58:15 +0900
commitbdeaa60e7be8153e247508801158d3062056918f (patch)
treef1a45ea8f78d593db9666f693c118236c331ccaa
parent1de063a10b5c5c71d0602c961862b8396702dbb1 (diff)
Make frozen Time Ractor-shareable
-rw-r--r--time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/time.c b/time.c
index a7ef9d2..73e3f11 100644
--- a/time.c
+++ b/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