aboutsummaryrefslogtreecommitdiffstats
path: root/regenc.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2019-04-23 12:10:52 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2019-04-23 14:21:15 -0700
commit75061f46ae646e821e9228caa5e3b7f23fa609f0 (patch)
tree9ea4054d0594295bfcf347c4a820fe4b3508ec24 /regenc.c
parentcf930985da1ae15b66577ec8286e54ad04ccda78 (diff)
downloadruby-75061f46ae646e821e9228caa5e3b7f23fa609f0.tar.gz
Fix complex hash keys to work with compaction
For example when an array containing objects is a hash key, the contents of the array may move which can cause the hash value for the array to change. This commit makes the default `hash` value based off the object id, so the hash value will remain stable. Fixes test/shell/test_command_processor.rb
Diffstat (limited to 'regenc.c')
0 files changed, 0 insertions, 0 deletions