Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cbf474e191a5f449b60cbbae3a9bb7820a85e6b2
Ticket: 597936ffffffffffffffffffffffffffffffffff
leak in new thread allocator
User & Date: msofer on 2002-08-23 19:35:50
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    With an fprintf here and an fprintf there, eeah eeah oh...
    
    All objects should be moved to the global pool by the
    TclFreeAllocCache exit handler. However, some objects in
    each thread (in this example, 286 of them) are not being
    moved over at thread exit, and are leaked. 
    
    Apparently TclFreeAllocCache is being called before all
    objects have been decrRefCount'ed out of existence? From
    'man pthread_key_create':
    "The order in which destructor functions are called at
    thread termination  time is unspecified."
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"