Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d601218f8ccb51c331fc4673fa1bd641b9c9f154c888217369c80de0ff6ede04
Ticket: 5ee1a650b7b537514162f3d9ce01317298ed45f5
Memory usage degradations after enabling thread in TCL
User & Date: serhiy.storchaka on 2026-10-14 14:19:29
Changes

  1. icomment:
    Yes, it is safe: without USE_THREAD_ALLOC, Tcl 8.6 uses the system malloc() and free(), which are thread-safe, but can be slower when many threads allocate at the same time. As sebres wrote, the threaded allocator keeps freed memory for reuse instead of returning it to the system; this is by design. The fragmentation problem is tracked in [3d1c409f1a].
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"
  4. resolution changed to: "Invalid"
  5. status changed to: "Closed"