From: Charles Nutter Date: 2011-01-15T00:02:09+09:00 Subject: [ruby-core:34497] [Ruby 1.9-Bug#4168] WeakRef is unsafe to use in Ruby 1.9 Issue #4168 has been updated by Charles Nutter. Ahh sure, the finalizer way...I thought you meant some other way. Yes, a finalizer-based queue would work. There are a few issues: * Much slower than a native queue * All those finalizers would slow down garbage collection as well * It does not allow another key use of weak references and ref queues: avoiding finalizers :) Other than that, yes, it would work. I would not recommend any heavy use, though. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4168 ---------------------------------------- http://redmine.ruby-lang.org