Skip to content
Tcl Source Code History Of Ticket 689100ffffffffff
Login

History Of Ticket 689100ffffffffff

Artifacts Associated With Ticket 689100ffffffffff

  1. Ticket change [68e91b338a] (rid 103146) by xtifr on 2003-02-18 22:58:32:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "xtifr"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "too much per-thread memory/hurd breakage"
    11. type initialized to: "Bug"
  2. Ticket change [068b0342cc] (rid 89240) by xtifr on 2003-02-19 06:02:02:

    1. icomment:
      
      
      File Added - 42819: thread_memory_patch
      
      
      
    2. login: "xtifr"
    3. mimetype: "text/plain"
    4. username: "xtifr"
  3. Add attachment "thread_memory_patch" [67fef20a21] (rid 102992) by xtifr on 2003-02-19 06:02:02.

  4. Ticket change [0992f2a09b] (rid 113680) by hobbs on 2003-02-20 07:43:52:

    1. closedate changed to: "2003-02-20T00:43:52"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      I had to correct this with the attached patch to the patch 
      which ensures that we have some value defined.  Solaris was 
      otherwise choking (it has the BSD-style MAXNAMLEN).  
      Patched in 8.4.2.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"
  5. Ticket change [e4cda9b9e0] (rid 88021) by hobbs on 2003-02-20 07:43:53:

    1. icomment:
      
      
      File Added - 42928: namemax.patch
      
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Add attachment "namemax.patch" [6f14f254a1] (rid 100251) by hobbs on 2003-02-20 07:43:53.

  7. Ticket change [e16e2f1390] (rid 87446) by xtifr on 2003-02-20 08:18:24:

    1. closedate changed to: "2003-02-20T01:18:24"
    2. closer changed to: "xtifr"
    3. icomment:
      Logged In: YES 
      user_id=25775
      
      Cool, that's much cleaner, thanks.  In the future, it might
      be nice to add a configure test to see if *any* extra memory
      is required (which it is on solaris, but isn't on
      glibc-based systems like linux and hurd), but this is
      definitely good enough for now.
      
      
    4. login: "xtifr"
    5. mimetype: "text/plain"
    6. username: "xtifr"