[ruby-cvs:51126] nobu:r43981 (trunk): hash.c: same hash value for similar constructs

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Dec 3 22:32:25 JST 2013


nobu	2013-12-03 22:32:24 +0900 (Tue, 03 Dec 2013)

  New Revision: 43981

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43981

  Log:
    hash.c: same hash value for similar constructs
    
    * hash.c (rb_hash_recursive): make similar (recursive) constructs
      return same hash value.  execute recursively, and rewind to the
      topmost frame with an object which .eql? to the recursive
      object, if recursion is detected.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/test/ruby/test_array.rb
    trunk/test/ruby/test_thread.rb


More information about the ruby-cvs mailing list