summaryrefslogtreecommitdiff
path: root/lib/racc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/racc')
-rw-r--r--lib/racc/parserfilegenerator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/racc/parserfilegenerator.rb b/lib/racc/parserfilegenerator.rb
index 7131026929..7846b584fa 100644
--- a/lib/racc/parserfilegenerator.rb
+++ b/lib/racc/parserfilegenerator.rb
@@ -310,8 +310,10 @@ module Racc
racc_reduce_n,
racc_use_result_var ]
End
+ line "Ractor.make_shareable(Racc_arg) if defined?(Ractor)"
line
string_list 'Racc_token_to_s_table', table.token_to_s_table
+ line "Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)"
line
line "Racc_debug_parser = #{table.debug_parser}"
line