From: matz@... (Yukihiro Matsumoto) Date: 2003-12-08T22:40:32+09:00 Subject: Re: WeakRef and Object#hash Hi, In message "Re: WeakRef and Object#hash" on 03/12/08, "Robert Klemme" writes: |> As you can see, I'm not even adding methods, and it causes the weak |> reference to not be recycled by the garbage collector. | |I had similar experiences about references not beeing cleared. Maybe |someone with more insight (Matz?) should comment on this. Maybe only an |instance's type is checked against WeakRef and not if it's a subtype of |that. The weakly referenced object is also considered as referenced from C stack region. It's due to Ruby's conservative nature of GC. matz.