Overview
| Comment: | * generic/tclCompile.c (TclCleanupByteCode): When encountering a shared bytecode structure we have to scan the literal table in that structure for objects of type "cmdName". These objects hold references to command structures, possibly in a different interp, and interfere with the cleanup of the refered commands (they keep their refcount up). Essentially at least one interp in a set of clones has a circular reference comand -> proc -> bytecode -> bytecode data -> cmdName obj -> command which prevents the command int that interp from being freed, leaking memory. The solution employed here is to invalidate the internal representation of 'cmdName's (but keeping the string rep), driving the refcount of refered command structures down, and breaking the cycle. |
|---|---|
| Timelines: | family | ancestors | descendants | both | mod-8-3-4-branch |
| Files: | files | file ages | folders |
| SHA1: |
a9a7ea8404b1ea74ffe72b398917af5a |
| User & Date: | andreas_kupries on 2002-12-06 03:08:17.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2002-12-06
| ||
| 03:58 | * generic/tclCompile.c (TclCleanupByteCode): when using TCL_THREAD_LITERALS, do not worry about in... check-in: 8c2329a41f user: hobbs tags: mod-8-3-4-branch | |
| 03:08 | * generic/tclCompile.c (TclCleanupByteCode): When encountering a shared bytecode structure we h... check-in: a9a7ea8404 user: andreas_kupries tags: mod-8-3-4-branch | |
| 02:48 | * generic/tclLiteral.c (LiteralThreadExitProc): do no delete literal table in thread exit handler.... check-in: efa79832cc user: hobbs tags: mod-8-3-4-branch | |
Changes
Modified ChangeLog
from [f152def1fc]
to [be33c249b4].
[diff]
Modified generic/tclCompile.c
from [18949dfdd3]
to [dee64e8442].
[diff]
Modified generic/tclExecute.c
from [3058141611]
to [2fec563ec4].
[diff]
Modified generic/tclInt.h
from [84cfdb6bae]
to [d48d2d9e04].
[diff]
Modified unix/tclAppInit.c
from [b42a24d336]
to [f584a02acd].
[diff]