Permalink
Browse files

Ensure packed object machinery sees Hash::State ivars.

  • Loading branch information...
1 parent 59c5b96 commit 95aa2ca7c05ed060d9ab8e9d83d7d28d2012aafe Brian Ford committed Aug 1, 2011
Showing with 4 additions and 0 deletions.
  1. +2 −0 kernel/common/hash19.rb
  2. +2 −0 kernel/common/hash_hamt.rb
View
2 kernel/common/hash19.rb
@@ -14,6 +14,8 @@ def self.from(state)
def initialize
@compare_by_identity = false
+ @head = nil
+ @tail = nil
end
def compare_by_identity?
View
2 kernel/common/hash_hamt.rb
@@ -17,6 +17,8 @@ def self.from(state)
def initialize
@size = 0
+ @head = nil
+ @tail = nil
@compare_by_identity = false
end

0 comments on commit 95aa2ca

Please sign in to comment.