Overview
| Artifact ID: | 5b380e0e8dadc24a033ac199e7d3051fba47f3d4 |
|---|---|
| Ticket: | 886231ffffffffffffffffffffffffffffffffff
Tcl interpreter does not lazy-free objects. |
| User & Date: | msofer on 2004-05-07 22:08:28 |
Changes
- icomment:
Logged In: YES user_id=148712 Some notes: 1. It is probably necessary to arrange that the objs are really freed in the same order of the requests. This is no guarantee that things will work, but is more robust than inverting the order wrt assumptions by extensions. IOW, we need a queueToFree (FIFO) - not a stackToFree 2. Each object should be freed from its own thread. This implies that each thread has to maintain its own queue, even if using the non-threaded allocator with a unified tclFreeObjList. 3. The "laziest" approach (free the object when it is about to be reused) could be dangerous: an extension may be keeping a reference to the obj that is not accounted in the refCount, relying on the freeIntRepProc to remove it. If we delay calling fIRP while the obj is in fact dead for tcl, the extension is not notified of this death and could reuse it - not good.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"