Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d9c2698fa1334bab285cb31112205c046fdd6d2e07f40d1e8c9054c245237364
Ticket: 9a2351225c77fb4a90cf23ade237414b4f199361
32-bit build broken (test lseq-bug-54329e39c7 fails)
User & Date: dkf on 2025-06-04 11:01:20
Changes

  1. icomment:
    I completely agree that this is serious. I'm just stuck on 64-bit Windows where I really cannot run that config myself. `;-)`
    
    Assuming I've not made a catastrophic blunder, I've turned down the size of the build matrices for the tags, which will start to recover resources. (Computed build matrices are a new departure for me.)
    
    ----
    
    Evidence that I do have:
    
    ```
    % eval {
        set l [lseq 1000000]
        proc p l {foreach x $l {}}
    }
    % repr $l
    value is a arithseries with a refcount of 4, object pointer at 0x23b521a96b8, internal representation 0x23b521a97b8:0x0, no string representation
    % memory info
    total mallocs                 171310
    total frees                   157962
    current packets allocated      13348
    current bytes allocated       873015
    maximum packets allocated      13580
    maximum bytes allocated       913761
    
    % p $l
    % repr $l
    value is a arithseries with a refcount of 4, object pointer at 0x23b521a96b8, internal representation 0x23b521a97b8:0x0, no string representation
    % memory info
    total mallocs                3173083
    total frees                  3159678
    current packets allocated      13405
    current bytes allocated       876104
    maximum packets allocated      13580
    maximum bytes allocated       913761
    
    % proc p2 l {foreach x $l {set y [memory info]};return $y}
    % p2 $l
    total mallocs              148173686
    total frees                148160185
    current packets allocated      13501
    current bytes allocated       880819
    maximum packets allocated      13580
    maximum bytes allocated       913761
    
    % unset l
    % memory info
    total mallocs              148174291
    total frees                148160792
    current packets allocated      13499
    current bytes allocated       881069
    maximum packets allocated      13580
    maximum bytes allocated       913761
    ```
    This shows that we're not getting excess memory usage at least on this platform.
    
  2. login: "dkf"
  3. mimetype: "text/x-markdown"