Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 68e91b338ae39b6667000e27873662ccc49c624d
Ticket: 689100ffffffffffffffffffffffffffffffffff
too much per-thread memory/hurd breakage
User & Date: xtifr on 2003-02-18 22:58:32
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I briefly brough this up on tcl-core.  On Unix(like)
    systems, way too much memory is being allocated for
    per-thread structures.  Basically, some storage is
    allocated for a filename returned from dirent(), but
    the amount of space allocated is enough for a full
    pathname, when only enough for a filename is required.
     In other words, "PATH_MAX" is used where "NAME_MAX" is
    what was wanted.  The difference is about 3.75k/thread
    on my Linux box, and might be worse on other systems.  
    
    Furthermore, POSIX allows a system to not define
    PATH_MAX if it doesn't have a pathname limit.  The Hurd
    is such a system, so this code breaks on The Hurd
    (which shouldn't be a major problem, since the code is
    wrong to begin with).
    
    I'm attaching the patch I wrote for Debian's Tcl8.4
    package.  Comments, criticism and questions welcomed.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "xtifr"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "too much per-thread memory/hurd breakage"
  11. type changed to: "Bug"