ruby-changes:64260
From: Koichi <ko1@a...>
Date: Fri, 18 Dec 2020 14:09:56 +0900 (JST)
Subject: [ruby-changes:64260] b44f7151c7 (master): zlib is ractor-safe
https://git.ruby-lang.org/ruby.git/commit/?id=b44f7151c7 From b44f7151c71011460877bdba549453aaeada88fe Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Fri, 18 Dec 2020 11:37:13 +0900 Subject: zlib is ractor-safe diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index de5e533..90fa5a6 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -4548,6 +4548,10 @@ zlib_gunzip_run(VALUE arg) https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4548 void Init_zlib(void) { +#if HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + #undef rb_intern VALUE mZlib, cZStream, cDeflate, cInflate; #if GZIP_SUPPORT -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/