Skip to content
Tcl Source Code History Of Ticket 2345638fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2345638fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2345638fffffffffffffffffffffffffffffffff

  1. Ticket change [32cd08cd88] (rid 93683) by sdeasey on 2008-11-25 19:58:24:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      With Tcl from HEAD compiled:
      
        --enable-threads --enable-symbols=mem
      
      on a modern 32bit Linux, a program (naviserver) linked with that Tcl aborts with this message:
      
        Tcl_GetMemoryInfo called when threaded memory allocator not in use
      
      Yet the tclConfig.sh contains:
      
        -DTCL_THREADS=1
        -DUSE_THREAD_ALLOC=1
      
      And the symbol USE_THREAD_ALLOC, which this feature depends on, seems to be unconditionally defined when --enable-threads is specified.
      
      Is the threaded allocator actually enabled when --enable-threads is specified (this used to be the case), or is Tcl_GetMemoryInfo mistaken?
      
      What is the correct way to figure out whether I can call Tcl_GetMemoryInfo from an application?
      
      
      Also, it would be nice to have a configure switch for the memory allocator:
      
        --enable-thread-allocator
      
      You could default it to on if --enable-threads is specified, as used to be the case, but you may want to default this to off considering that OS allocators perform better with threads than they used to and for the typical threaded desktop app are likely to use much less memory than the Tcl allocator.
      
      
    4. foundin initialized to: "obsolete: 8.6a4"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "sdeasey"
    10. subsystem initialized to: "49. Threading"
    11. title initialized to:
      Tcl_GetMemoryInfo aborts w/threaded memory allocator
      
    12. type initialized to: "Bug"
  2. Ticket change [d62f287ddc] (rid 123763) by dgp on 2008-11-27 13:47:22:

    1. icomment:
      
      See also Bug 2175442
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"