Overview
| Artifact ID: | 139a71d4b2d3329a8cd597c731934179dcfa909f |
|---|---|
| Ticket: | 467523ffffffffffffffffffffffffffffffffff
memory leak in [namespace eval foo {}] |
| User & Date: | msofer on 2001-10-05 20:37:05 |
Changes
- icomment:
Logged In: YES user_id=148712 The problem (I think) is that the object referred to by the literal "" in the slave interp is never freed, as it is self-referential: the bytecode pushes itself on the stack, so that the bytecode object always has refCount >=1 - it appears in its own local literal table. The code leaks 164 bytes: 24 for the object, 128 for its internal rep as a bytecode, 12 for the handle to the interpreter (it would be freed by CleanupByteCode when the object is freed). One possible solution I am exploring is to be more careful about sharing literals. The solution to this bug along this path could conceivably also fix [Bug 458361] in a roundabout way.
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "47. Bytecode Compiler"
- username: "msofer"