Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f5e75281330139668a0afd8d619d68dea0528b79839fd751bc83f5a855f0607a
Ticket: bb9129e46c99f405fbc6bbd9261726c05a2ffb2e
TCL Memory raise up and didn't come down for ever
User & Date: luguanhui on 2018-06-04 11:37:16
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
         Recentely,I build a c++ program with the TCL Interpreter,and spawn 20 threads .In each thread,I write the flowing code in loop :
    1.new a TCL Interpreter
    2.execute lots of TCL script
    3.delete the interpreter 
    4.call Tcl_FinalizeThread to free the memory     
        After execute the code.the memory is raise up and didn't come down for ever.And the I check the code of TCL8.6.8 ,I found that TCL have two type of memory management:Thread Local Storage memory and shared memory.After Tcl_FinalizeThread  is call ,the TLS memroy will transfer to shared memory.and shareed will not free for ever ,and this will lead to TCL Memory raise up and didn't come down for ever
        My question is :
    1.why TCL didn't free the shared memeory for ever
    2.Does  TCL provide any way to free the share memory
    
  5. foundin changed to: "8.6.8"
  6. is_private changed to: "0"
  7. login: "luguanhui"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "luguanhui"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "TCL Memory raise up and didn't come down for ever"
  15. type changed to: "Bug"