From: Roger Pack Date: 2009-06-17T01:24:43+09:00 Subject: [ruby-core:23875] [Bug #1392] Object#extend leaks memory on Ruby 1.9.1 Issue #1392 has been updated by Roger Pack. I think you can tell if it was a leak by running a loop loop do s = {} s.extend BetterHash if @extend end If this eats up all memory in the system then it's a leak. [on mine it stays constant at 4MB]. That doesn't mean to say there's no bugs in there, though--it may be the case that you're using up the entire freelist each time, without ever passing the malloc_limit, which means that your heap total size will get bigger and bigger and bigger...not sure though. Compiling 1.9 with the GC stats turned on might help. Cheers! -=r ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1392 ---------------------------------------- http://redmine.ruby-lang.org