diff options
author | Koichi Sasada <[email protected]> | 2020-12-20 04:22:13 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-20 04:22:29 +0900 |
commit | bcf4b236e424ce0e6055f4a9651b5369a830866a (patch) | |
tree | c7be2d7e89aca4b54b8c684185bd3005cd37ec5b /ext/racc/cparse/cparse.c | |
parent | 846c4b03b8e9ff788f355f1bcd12e75715288e95 (diff) |
ext/racc/cparse is ractor-safe
Diffstat (limited to 'ext/racc/cparse/cparse.c')
-rw-r--r-- | ext/racc/cparse/cparse.c | 4 |
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"); |