Skip to content

Hash's compare_by_identity state does not marshal #9063

Description

@headius

We aren't dumping compare_by_identity Hash instances correctly:

$ cx ruby-master ruby -e 's = Hash.new; p Marshal.dump(s)' 
"\x04\b{\x00"
$ cx ruby-master ruby -e 's = Hash.new; s.compare_by_identity; p Marshal.dump(s)'
"\x04\bC:\tHash{\x00"
$ jruby -e 's = Hash.new; p Marshal.dump(s)'              
"\x04\b{\x00"
$ jruby -e 's = Hash.new; s.compare_by_identity; p Marshal.dump(s)'              
"\x04\b{\x00"

How embarrassing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions