Overview
| Artifact ID: | 7429251de14921262a885102d0c71675c356b556 |
|---|---|
| Ticket: | 3389764fffffffffffffffffffffffffffffffff
fCmd-4.5 leaks |
| User & Date: | ferrieux on 2011-08-12 01:51:06 |
Changes
- icomment:
Think I got it: (1) In TclByteCodeInit, the comment: /* * Prevent circular reference where the bytecode intrep of * a value contains a literal which is that same value. * If this is allowed to happen, refcount decrements may not * reach zero, and memory may leak. Bugs 467523, 3357771 */ explains why a Dup is done on the object (The Empty String, let's call it x0, shared 60 times). (2) At the time this Dup is done (for an obscure compilation of an empty body), the object has just shimmered to a Path (because of file mkdir), hence DupFsPathInternalRep is called. (3) However, x0 satisfies: x0->intrep->translatedPathPtr == x0 (4) Since DupFsPathInternalRep copies the translatedPathPtr, the result of the Dup is an object x1 such that x1->intrep->translatedPathPtr == x0 (5) As a consequence, the very thing that (1) was supposed to avoid, a reference loop, happens: the Dup has been too lazy. - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"