Overview
| Artifact ID: | 7d85c21220ab5accc70e094857200bef0f31eb7e |
|---|---|
| Ticket: | 886231ffffffffffffffffffffffffffffffffff
Tcl interpreter does not lazy-free objects. |
| User & Date: | dkf on 2004-06-15 04:42:29 |
Changes
- icomment:
Logged In: YES user_id=79902 I have a prototype fix for this in the works. A few comments on Miguel's notes: 1. Queues are more complex to maintain than stacks, and library code tidying up the guts of a type should categorically not rely on the order of deletion of objects. The core does not document what this order is BTW. 2. The behaviour (whether or not to use per-thread collecting) depends purely on TCL_THREADS and not which allocator. It turns out that this can be done really neatly with virtually the same code in the threaded and non-threaded case. :^) 3. Being very lazy is probably not a good idea, especially as it will significantly increase the overall memory consumption of Tcl unless a strategy of "reuse the most recently released object" is used, which negates a lot of the benefit of laziness. Keeping a reasonable degree of openness is best. I'll upload the patch once I've got a version which compiles cleanly in both threaded and non-threaded builds. ;^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"