Skip to content
Tcl Source Code Artifact [d91074b88a]
Login

Artifact [d91074b88a]

Artifact d91074b88a380050f6d248f3c4ac89c5abfa41c4:

Manifest of check-in [d91074b88a] - Stuffed memory leak incurred by re-initializing of TSD slots after the last call to TclFinalizeThreadData (done from within Tcl_FinalizeThread()). We basically just repeat the TclFinalizeThreadData() once more before tearing down TSD keys in TclFinalizeSynchronization(). There should be more elaborate mechanism in place for handling such issues, based on thread cleanup handlers registered on the OS level. Such change requires much more work and would also require TIP because some visible parts of Tcl API would have to be modified. In the meantime, this will do. by vasiljevic on 2004-07-15 20:04:37.
B fe44c63747c835685d480f3a08c3b6d640509550
C Stuffed\smemory\sleak\sincurred\sby\sre-initializing\sof\sTSD\sslots\nafter\sthe\slast\scall\sto\sTclFinalizeThreadData\s(done\sfrom\swithin\nTcl_FinalizeThread()).\sWe\sbasically\sjust\srepeat\sthe\nTclFinalizeThreadData()\sonce\smore\sbefore\stearing\sdown\sTSD\skeys\nin\sTclFinalizeSynchronization().\nThere\sshould\sbe\smore\selaborate\smechanism\sin\splace\sfor\shandling\nsuch\sissues,\sbased\son\sthread\scleanup\shandlers\sregistered\son\sthe\nOS\slevel.\sSuch\schange\srequires\smuch\smore\swork\sand\swould\salso\nrequire\sTIP\sbecause\ssome\svisible\sparts\sof\sTcl\sAPI\swould\shave\sto\nbe\smodified.\sIn\sthe\smeantime,\sthis\swill\sdo.\n
D 2004-07-15T20:04:37
F ChangeLog 451e4f7ff1569507094da1146ea51b37e0138e97
F generic/tclBasic.c 5cf287d410704618ef322e8c14767a91ece991df
F generic/tclCompile.c 7281c63df27e839a1c38b79a849a071f5ba8dbb4
F generic/tclEvent.c 9ad7fc98fe42c672b7b4806ab1e4239cb51a02a6
F generic/tclLiteral.c c6c3e8428228f813269f847c7e1edb82edf21a30
P d437bc09c5aa9abb417e2715d7687a55b3867c22
U vasiljevic
Z 20d9a083ef8a71872f0c58d310e2cf7c