Skip to content

Commit

Permalink
zlib is ractor-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 authored and hsbt committed Dec 21, 2020
1 parent 238731d commit 75fb62a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/zlib/zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -4548,6 +4548,10 @@ zlib_gunzip_run(VALUE arg)
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
Expand Down

0 comments on commit 75fb62a

Please sign in to comment.