summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-20 04:22:13 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-20 04:22:29 +0900
commitbcf4b236e424ce0e6055f4a9651b5369a830866a (patch)
treec7be2d7e89aca4b54b8c684185bd3005cd37ec5b /ext
parent846c4b03b8e9ff788f355f1bcd12e75715288e95 (diff)
ext/racc/cparse is ractor-safe
Diffstat (limited to 'ext')
-rw-r--r--ext/racc/cparse/cparse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c
index 8fa10693ed..8614c10e09 100644
--- a/ext/racc/cparse/cparse.c
+++ b/ext/racc/cparse/cparse.c
@@ -819,6 +819,10 @@ reduce0(RB_BLOCK_CALL_FUNC_ARGLIST(_, data))
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");