diff options
author | Kenta Murata <mrkn@mrkn.jp> | 2020-12-16 23:04:42 +0900 |
---|---|---|
committer | Kenta Murata <mrkn@mrkn.jp> | 2020-12-19 15:08:01 +0900 |
commit | b66f52b0e374d298cbd3a68029226dc1ccd77554 (patch) | |
tree | 80799e1075b826de1743acfcc8f10ccfbf9fbb65 /ext/digest | |
parent | feacae193ca3856b1d326697835357791a6df12b (diff) |
[digest] Make digest Ractor safe
https://github.com/ruby/digest/commit/c13a024b85
https://github.com/ruby/digest/commit/9edca3f8be
https://github.com/ruby/digest/commit/378b56b6ca
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/digest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c index cde0dfa005..83f4ee42fc 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -765,6 +765,10 @@ InitVM_digest(void) */ rb_mDigest = rb_define_module("Digest"); +#ifdef HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + /* module functions */ rb_define_module_function(rb_mDigest, "hexencode", rb_digest_s_hexencode, 1); |