[MacRuby] #1324: memory leak occurs with eval.
#1324: memory leak occurs with eval. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby def memory pid = $$ str = `ps alx | grep '#{pid}.*ruby'` str.split[7] end Thread.start { sec = 0 loop do puts "#{sec} sec : " + memory + " KB" sleep 10 sec += 10 end } loop do eval "a = 42" end }}} Result: {{{ $ macruby eval.rb 0 sec : 13316 KB 10 sec : 70432 KB 20 sec : 124400 KB 30 sec : 189016 KB 40 sec : 228328 KB 50 sec : 312684 KB 60 sec : 352976 KB }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1324> MacRuby <http://macruby.org/>
#1324: memory leak occurs with eval. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): I commented the call to RoxorCore::delenda() in vm.cpp because it was causing random crashes during spec:ci. If you uncomment the call I think the memory leak will disappear. -- Ticket URL: <http://www.macruby.org/trac/ticket/1324#comment:1> MacRuby <http://macruby.org/>
#1324: memory leak occurs with eval. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I uncommented in rb_vm_run(), it was much better. [[BR]] but it still seems to leak. {{{ $ DYLD_LIBRARY_PATH=. ./macruby ~/tmp/eval.rb 0 sec : 13264 KB 10 sec : 28492 KB 20 sec : 38496 KB 30 sec : 51540 KB 40 sec : 55872 KB 50 sec : 74916 KB 60 sec : 79076 KB 70 sec : 83388 KB 80 sec : 87496 KB 90 sec : 123108 KB 100 sec : 126600 KB 110 sec : 130636 KB 120 sec : 135016 KB }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1324#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby