mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
If a Hash which is empty or only using literals is frozen, we detect this as a peephole optimization and change the instructions to be `opt_hash_freeze`. [Feature #20684] Co-authored-by: Jean Boussier <byroot@ruby-lang.org>