From: Nobuyoshi Nakada Date: 2009-06-18T22:33:44+09:00 Subject: [ruby-core:23918] Re: Broken finalizers in ruby 1.8 Hi, At Thu, 18 Jun 2009 18:30:35 +0900, Stanislav Sedov wrote in [ruby-core:23913]: > The problem can be verified using the following simple snipplet: > > % obj = "Test" > % handler = Proc.new { puts "Finalized!" } > % ObjectSpace.define_finalizer(obj, handler) That handler contains the reference to obj, so it should not be called. > If you run this code in ruby 1.8.7 before r21435 it prints 'Finalized!'. It's a bug. -- Nobu Nakada