From 3d3194412918012ddab185751b84ebb64fe6e5d5 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Thu, 17 Dec 2020 10:05:07 +0900 Subject: [stringio] Make stringio Ractor safe https://github.com/ruby/stringio/commit/ee3fec7512 https://github.com/ruby/stringio/commit/18dcd045ef https://github.com/ruby/stringio/commit/18dcd045ef --- ext/stringio/stringio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext') diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index bb7c0e6e4e..228063d79b 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1750,6 +1750,11 @@ void Init_stringio(void) { #undef rb_intern + +#ifdef HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + VALUE StringIO = rb_define_class("StringIO", rb_cData); rb_define_const(StringIO, "VERSION", rb_str_new_cstr(STRINGIO_VERSION)); -- cgit v1.2.3