Skip to content
Tcl Source Code History Of Ticket 582810ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 582810ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 582810ffffffffffffffffffffffffffffffffff

  1. Ticket change [e6fc0b194b] (rid 104380) by nobody on 2002-07-17 13:00:08:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      SyncObjRecord in tclThread.c has unlimited growth--it's 
      realloced when full always with extra 8 slots, e.g. it 
      should add these slots only when there is less than 8 
      slots filled
      
    4. foundin initialized to: "obsolete: 8.4b1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "41. Memory Allocation"
    10. title initialized to: "memory leak"
    11. type initialized to: "Bug"
  2. Add attachment "tcl.bug" [494b01c1ad] (rid 100035) by nobody on 2002-07-17 20:00:08.

  3. Ticket change [018fa15cec] (rid 119502) by nobody on 2002-07-17 20:00:09:

    1. icomment:
      
      
      File Added - 27229: tcl.bug
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [c51a3ccef2] (rid 111940) by dgp on 2002-07-17 20:56:11:

    1. subsystem changed to: "49. Threading"
  5. Ticket change [8cb60938c1] (rid 127785) by dgp on 2002-07-17 20:57:14:

    1. assignee changed to: "andreas_kupries"
  6. Ticket change [801b5b4e8d] (rid 97677) by andreas_kupries on 2002-08-07 05:32:03:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=75003
      
      Question is how much memory do we lose here
      because of this.
      
      And, how much time do we lose by searching through
      the array for free entries ? Do we have info on the size of
      arrays during execution ?
      
      Alternative implementation: a free-list using one additional 
      element in the structure, to anchor the list, and the 
      references to the next free entry are kept in the free entries
      (integer's, not as pointers, relocatable).
      
      Your opinion Jeff ?
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  7. Ticket change [6c190d1fef] (rid 128442) by hobbs on 2002-08-08 13:57:45:

    1. title changed to: "need to control SyncObj memory usage"
  8. Ticket change [a7efab7912] (rid 98887) by hobbs on 2002-08-08 13:57:46:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      tclThread.c:RememberSyncObject
      The problem seems more fundamental, in that recPtr->num 
      only ever increases (except at finalization, when set to zero 
      again).  The memory is released, but we aren't using it well, 
      because if SyncObjects are forgotten, num isn't 
      decremented, and there is no reuse of pointers in the list.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  9. Ticket change [d88d97fd7e] (rid 107461) by hobbs on 2003-07-17 06:26:44:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      Zoran, can you comment on the effects of this?
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  10. Ticket change [717b67c758] (rid 100683) by vasiljevic on 2003-07-18 18:41:25:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      I agree with your oppinion. I also think that Andreas suggestion 
      would be ok. Instead of always allocating new, we might just 
      remember (in the LIFO free list) void slots and reuse them again. 
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  11. Ticket change [0b1c5505bd] (rid 113925) by hobbs on 2003-07-19 00:28:51:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Can you test the patch attached in one of your more 
      intensive threaded tests?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  12. Ticket change [2bace40a34] (rid 118781) by vasiljevic on 2003-07-20 01:20:24:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Works fine. 
      During some simple quick tests without patch, the table grew 
      to 256 entries. With patch, it was steady at 40/48 entries. 
      I'd only consider using register for loop counters in such 
      tight loops. Otherwise, I have no complaints. 
      You can put it in 8.4.4, IMHO. 
       
       
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  13. Ticket change [8937a804e0] (rid 131991) by vasiljevic on 2003-10-16 16:26:35:

    1. closedate changed to: "2003-10-16T09:26:35"
    2. closer changed to: "vasiljevic"
    3. icomment:
      Logged In: YES 
      user_id=95086
      
      I'm closing this one since it is now merged in head.
      
      
    4. login: "vasiljevic"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "vasiljevic"
  14. Ticket change [9425d05aca] (rid 105936) by dkf on 2003-10-28 20:23:26:

    1. resolution changed to: "Fixed"