Skip to content
Tcl Source Code Check-in [a9a7ea8404]
Login

Check-in [a9a7ea8404]

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: a9a7ea8404b1ea74ffe72b398917af5ace450716
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