Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 425a91a646e7f742bc3bbb919cc5a8e68f02b764
Ticket: 3149691fffffffffffffffffffffffffffffffff
Major memory leak in methods
User & Date: geoffmic on 2011-01-02 12:00:09
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    }
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "geoffmic"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "Major memory leak in methods"
  12. type changed to: "Bug"