1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ext/racc/cparse is ractor-safe

This commit is contained in:
Koichi Sasada 2020-12-20 04:22:13 +09:00
parent 846c4b03b8
commit bcf4b236e4

View file

@ -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");