Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f6f76d04f1a46cc3efc775b6992c526c7d30ac18
Ticket: 587488ffffffffffffffffffffffffffffffffff
leak with the new thread allocator
User & Date: msofer on 2002-07-27 18:58:35
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Reported on clt by Sven Sass on clt:
    http://groups.google.com/groups?dq=&start=25&hl=en&lr=&ie=UTF-8&group=comp.lang.tcl&selm=88d0b923.0207260455.4e4f3da9%40posting.google.com
    http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&group=comp.lang.tcl&selm=ahrscj%24290%2402%241%40news.t-online.com
    
    The problem is: when compiling with  both 
       -DTCL_THREADS -DUSE_THREAD_ALLOC
    the following script (typed at the tclsh prompt) leaks
    massively
    
      for { set i 0 } { $i < 100000 } {incr i} {
          lappend a ""
          unset a
      }
    
    Replacing [lappend] with [append] or [unset a] with
    [set a {}] stops the leak; compiling with the previous
    allocator stops it too.
    
    I confirmed the problem on linux, with the HEAD as of
    2002-04-24 - i.e., just after the commit of the new
    allocator and before releasing tcl8.4b1.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4b2"
  5. priority changed to: "8"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "41. Memory Allocation"
  10. title changed to: "leak with the new thread allocator"
  11. type changed to: "Bug"