ruby-changes:64358
From: Koichi <ko1@a...>
Date: Sun, 20 Dec 2020 04:23:20 +0900 (JST)
Subject: [ruby-changes:64358] bcf4b236e4 (master): ext/racc/cparse is ractor-safe
https://git.ruby-lang.org/ruby.git/commit/?id=bcf4b236e4 From bcf4b236e424ce0e6055f4a9651b5369a830866a Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 20 Dec 2020 04:22:13 +0900 Subject: ext/racc/cparse is ractor-safe diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index 8fa1069..8614c10 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -819,6 +819,10 @@ reduce0(RB_BLOCK_CALL_FUNC_ARGLIST(_, data)) https://github.com/ruby/ruby/blob/trunk/ext/racc/cparse/cparse.c#L819 void Init_cparse(void) { +#if HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + VALUE Racc, Parser; ID id_racc = rb_intern_const("Racc"); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/