summaryrefslogtreecommitdiff
path: root/lib/racc
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2021-09-13 19:00:53 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-12 07:52:25 +0900
commit11e15b4d481608b3d494af4cf7e5eb67a4dd0d7c (patch)
tree628a2c4e329593aff021364673a40739b8f609d3 /lib/racc
parent7e283c585e88a08c6eaa4d28ffb646270b598e6d (diff)
downloadruby-11e15b4d481608b3d494af4cf7e5eb67a4dd0d7c.tar.gz
[ruby/racc] Make racc Ractor compatible
https://github.com/ruby/racc/commit/1948de9d1d
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