Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a71cdb67e5b9bab4b24fcb849b7c3a6760e4ebe8107516d342f6b572132cb50
Ticket: a0df373abd7f81ad7754278d3f2518dafa79afe8
memory leak by any package require (trunk and windows only)
User & Date: sebres on 2025-07-20 12:01:31
Changes

  1. icomment:
    All my builds are without zipfs (so one'd be able to develop or change sources of tcl-library, without to rebuild zipfs).<br/>
    And I was not on 9.1rc0 but on current trunk.
    
    Env:
    gcc 14.2 (MinGW-W64 x86_64-msvcrt-posix-seh)...
    
    How it is build:
    
    ```
    mkdir win/Release; cd $_
    ../configure --disable-zipfs
    make tcltest
    ```
    
    The issue:
    
    ```
    ./tcltest <<<'
    proc memusage {} { regexp -inline {\d+} [exec wmic process where processid=[pid] get WorkingSetSize] };
    puts [memusage];
    timerate {
      timerate {interp create i; i eval { package require platform }; interp delete i} 3000;
    puts [memusage];
    } 30000
    '
    ```
    
    The metric is working set size (but the same would be for private bytes):
    ```
    7880704
    10469376
    11571200
    12693504
    13955072
    15065088
    16216064
    17309696
    18522112
    19595264
    ```
    
    If you'd repeat it for 9.0, you'd see zero increase once the mem-manager buffered area grows to matched size of task (and gets frozen by ca. 9375744).
    
  2. login: "sebres"
  3. mimetype: "text/x-markdown"