Artifacts Associated With Ticket 2034347fffffffffffffffffffffffffffffffff
Ticket change [d32b45b584] (rid 123247) by msofer on 2008-07-31 20:46:01:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The newly available allocCache field in Interp can be used to speed up most alloc/free as well as and Tcl_Obj allocation and freeing. Specifically, a simple extra interface to the functions in generic/tclThreadAlloc that receives a Cache pointer would bypass accessing the TSD. For Tcl_Obj allocation and freeing, the work can be done mostly in macros (see the macro TclAllocObjStorageEx() in HEAD). What this means is that we should pass the interp where available to the alloc and obj creation/deletion functions or macros (NULL if unknown). Most of the core activity happens with an interp at hand. This is a fairly trivial project, but rather bothersome (2000+ locs to change). Note that the "upgrade" can be done gradually, starting with the most critical parts. Note also that this would make normal allocations compete with TclStackAlloc in terms of speed, so that we could remove it and be free of its bothersome limitations.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "41. Memory Allocation"
- title initialized to: "Use the ekeko to speed up threaded allocs "
- type initialized to: "RFE"
Ticket change [6e5e0ff085] (rid 100136) by msofer on 2008-08-06 19:15:44:
- icomment:
Logged In: YES user_id=148712 Originator: YES This reform would also allow to keep memory usage statistics per interp, cheaply and independently of the allocator being used. It opens the path to implement [interp memlimit], which is one of the biggest remaining holes in the protection against DOS attacks on safe interps. My first idea would be to keep mem usage statistics on non-Tcl_Obj memory only.
- login: "msofer"
- mimetype: "text/plain"
- title changed to: "mem handling reform"
- username: "msofer"
- icomment: