From: Jason Earl Date: 2010-01-27T06:58:20+09:00 Subject: [ruby-core:27859] [Bug #1392] Object#extend leaks memory on Ruby 1.9.1 Issue #1392 has been updated by Jason Earl. I've just tried the code above with Ruby 1.9.2 Preview 1 and the current trunk. I can confirm that this doing ./ruby leak_test.rb LEAK on the above versions appears to leak memory as ps aux / top reports a 0.8% memory utilization by the time the script has finished running. The memory usage goes up gradually as the program runs. Once the program has hit the sleep command, the memory usage does not go down, even if a GC.start call has been inserted directly above to coerce the Ruby VM to clean up. Running this under the current 1.8.8 snapshot does not to this, and the memory usage remains constant throughout. Likewise not passing any arguments (so extend is not called) also keeps the memory usage constant under both 1.8.x and 1.9.x branches tested on my system. I am running an a 64 bit (x64) bit rather than a 32bit (x86) build. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1392 ---------------------------------------- http://redmine.ruby-lang.org