Artifacts Associated With Ticket 3149691
Ticket change [425a91a646] (rid 116355) by geoffmic on 2011-01-02 12:00:09:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
WinXP Tcl8.6 TclOO 0.6.2. memory leak in methods with variable declaration. Attached script gobbles 400MB memory from 1 object and never releases it. I expect it to use same amount of memory (after a few iterations). console show ; update; package require TclOO oo::class create cell { method setcp1 {vv} {my variable cp1;set cp1 $vv} } set a [cell new] ;# create just one object! set i 0;while {$i<6000000} { incr i; if {!($i%25000)} {puts "Looped $i times";update} $a setcp1 123 } - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "geoffmic"
- subsystem initialized to: "10. Objects"
- title initialized to: "Major memory leak in methods"
- type initialized to: "Bug"
Ticket change [6f054c53fb] (rid 100238) by dkf on 2011-01-03 05:30:54:
- icomment:
This artifact has been marked as a duplicate of artifact 3105999 with reason: Identical symptom, not present on HEAD
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [b9e58f271f] (rid 129225) by dkf on 2011-01-03 05:30:55:
- status changed to: "Closed"
Ticket change [305b6d2b6f] (rid 93239) by dkf on 2011-01-03 05:31:32:
- foundin changed to: "obsolete: 8.6b1.1"
- resolution changed to: "Duplicate"
Ticket change [7149bff2ab] (rid 100645) by dkf on 2011-01-03 05:31:56:
- assignee changed to: "dkf"
- subsystem changed to: "35. TclOO Package"
Ticket change [bd7e0b622f] (rid 101914) by dkf on 2011-01-03 05:34:31:
- icomment:
BTW, I watched the process in a memory monitor when it was running the sample code, and it was utterly flat in its memory consumption through the first million iterations. Even a single-byte leak (vanishingly unlikely) would have showed. Even a 10kB leak over the whole run would have showed. The leak's gone.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: