Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4c9f7329b6e130b80ad6501c98b74a8e8fbcf97b
Ticket: 1178445fffffffffffffffffffffffffffffffff
thread exit wastes memory
User & Date: vasiljevic on 2005-04-07 11:20:14
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Since 8.4.7 in an attempt to cleanup properly after calling
    Tcl_Finalize(), a large memory waste has been opened
    when Tcl-lib generated threads exit. This is observed on
    threaded builds (--enable-threads) and only in the default
    threaded memory allocator (-DUSE_THREAD_ALLOC=1).
    This is not a memory leak per-se, hence it is not simple to
    verify this with memory-leak analysis tools like e.g.
    Purify.
    
    To reproduce, compile Tcl library with threads enabled,
    checkout and compile the Tcl threading extension and
    try out this commands:
    
      package req Thread
      time {thread::join [thread::create -joinable ""]} 10000
    
    while observing the process virtual/resident memory usage
    (using the "top" utility or similar) . 
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "7 High"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vasiljevic"
  9. subsystem changed to: "41. Memory Allocation"
  10. title changed to: "thread exit wastes memory"
  11. type changed to: "Bug"