diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-01-12 14:21:35 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-12 14:53:14 -0800 |
commit | 475663f0399248011f2392817ef4d89ec07baae4 (patch) | |
tree | 1b04d2bcd4f64c20eae47a8b1ecf2246d35bbfa1 /tool | |
parent | 206388b19eb3e1d98ee77821a96705c97c86eb06 (diff) |
Only intern constants upon compilation entry
Before this commit the Prism compiler would try to intern constants
every time it re-entered. This pool of constants is "constant" (there is
only one pool per parser instance), so we should do it only once: upon
the top level entry to the compiler.
This change does just that: it populates the interned constants once.
Fixes: https://github.com/ruby/prism/issues/2152
Diffstat (limited to 'tool')
-rw-r--r-- | tool/prism_btests | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/prism_btests b/tool/prism_btests index 2eda5e624e..e14f0d3cf9 100644 --- a/tool/prism_btests +++ b/tool/prism_btests @@ -30,6 +30,6 @@ # ../src/bootstraptest/test_ractor.rb # ../src/bootstraptest/test_syntax.rb # ../src/bootstraptest/test_yjit.rb -# ../src/bootstraptest/test_yjit_30k_ifelse.rb -# ../src/bootstraptest/test_yjit_30k_methods.rb +../src/bootstraptest/test_yjit_30k_ifelse.rb +../src/bootstraptest/test_yjit_30k_methods.rb # ../src/bootstraptest/test_yjit_rust_port.rb |