Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 51e94bb1eba641fde6febfc420be30cc64d9f1a6
Ticket: 1504500fffffffffffffffffffffffffffffffff
slave interp evaluation leaks memory
User & Date: msofer on 2006-06-12 05:53:40
Changes

  1. assignee changed to: "hobbs"
  2. closedate changed to: "2006-06-11T22:53:40"
  3. closer changed to: "msofer"
  4. icomment:
    Logged In: YES 
    user_id=148712
    
    I do not see any *real* leak there. Tcl does leave some
    memory to be cleaned by the os on exit, and that is what you
    are seeing. In this case, the main interp's execution
    environment and the stdout channel.
    
    In order to test real leaks in slave interps, you may try to
    run the following in a shell, checking the memory reqs with
    top in a different shell:
    
    while 1 {
       interp create slave
       slave eval {
           # whatever you want here; note that writing
           # to the console will increase the corresponding
           # memory reqs until the scrollback buffer is full
       }
       interp delete slave
    }
    
    If there is a leak, the memory should keep increasing. It
    doesn't here.
    
    Assigning to hobbs for a second opinion.
    
    
  5. login: "msofer"
  6. mimetype: "text/plain"
  7. resolution changed to: "Invalid"
  8. status changed to: "Pending"
  9. subsystem changed to: "41. Memory Allocation"
  10. username: "msofer"