[MacRuby] #1331: memory leak occurs when calculate binary-tree.
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- I will atach a test script.[[BR]] when I calculate binary-tree, MacRuby latest needs huge memory. MacRuby 0.10 did not. {{{ $ macruby0.10 -v bm_binary_trees.rb MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] 19460 KB $ macruby -v bm_binary_trees.rb MacRuby 0.11 (ruby 1.9.2) [universal-darwin10.4, x86_64] 1812296 KB }}} MacRuby 0.10 = 19.4 MB[[BR]] MacRuby 0.11 = 1.8 GB I got a original script from https://github.com/acangiano/ruby-benchmark- suite/blob/master/benchmarks/micro-benchmarks/bm_binary_trees.rb -- Ticket URL: <http://www.macruby.org/trac/ticket/1331> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): I'm looking at all objects and GC references and I see a lot of Arrays that are alive. I wonder if your recent GC_MEMMOVE patch is not the cause of this. -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:1> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): It's not related to GC_MEMMOVE, as I still see huge memory usage if I revert the change. -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:2> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I tried with https://github.com/MacRuby/MacRuby/commit/c1833dd1d2764711f3ea658d7e1108e620... already MacRuby needs huge memory. {{{ $ macruby -e 'p MACRUBY_REVISION' "git commit c1833dd1d2764711f3ea658d7e1108e62057dddb" $ macruby bm_binary_trees.rb 1852444 KB }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:3> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Maybe using git bisect would help here? -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:4> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): this problem causes by https://github.com/MacRuby/MacRuby/commit/528a72bdc14f736a67c5bf9c5af0a1df36... I will revert it. -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:5> MacRuby <http://macruby.org/>
#1331: memory leak occurs when calculate binary-tree. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/1d057c84b293138aaf70856ae37960dfa5... -- Ticket URL: <http://www.macruby.org/trac/ticket/1331#comment:6> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby