ruby-changes:64518
From: Kenta <ko1@a...>
Date: Wed, 23 Dec 2020 18:33:43 +0900 (JST)
Subject: [ruby-changes:64518] aad88cc10b (master): [ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby
https://git.ruby-lang.org/ruby.git/commit/?id=aad88cc10b From aad88cc10ba268625aaa93ddcc6ff5036052c5cd Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Wed, 23 Dec 2020 16:51:16 +0900 Subject: [ruby/date] Define dummy RUBY_TYPED_FROZEN_SHAREABLE for old Ruby https://github.com/ruby/date/commit/9f3e90ad10 diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 38deba6..7e9bf16 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -2973,6 +2973,10 @@ d_lite_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2973 return complex_dat_p(dat) ? sizeof(struct ComplexDateData) : sizeof(struct SimpleDateData); } +#ifndef HAVE_RB_EXT_RACTOR_SAFE +# define RUBY_TYPED_FROZEN_SHAREABLE 0 +#endif + static const rb_data_type_t d_lite_type = { "Date", {d_lite_gc_mark, RUBY_TYPED_DEFAULT_FREE, d_lite_memsize,}, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/