Artifacts Associated With Ticket 1685436fffffffff
Ticket change [c258c954c4] (rid 111469) by dgp on 2007-03-21 18:22:48:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Some public Tcl routines return pointers that can be Tcl_Preserve()d; for example, Tcl_CreateInterp(). Other public Tcl routines return pointers that cannot be Tcl_Preserve()d; for example, Tcl_CreateNamespace(). The pointers returned by such routines really can't be reliably kept long-term. Perhaps that's a bug, and more return-able pointers need to support Tcl_Preserve-ability. If not, the documentation should at least make this distinction clear.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "None"
- title initialized to: "document Tcl_Preserve-ability"
- type initialized to: "RFE"
Ticket change [7fe7fe2f3a] (rid 97642) by andreas_kupries on 2007-03-22 04:10:58:
- icomment:
Logged In: YES user_id=75003 Originator: NO I wonder if we can snarf ideas from the linux kernel for that. IIRC they are using special macros and type magic, likely gcc specific, to give pointers additional attributes which the compiler can check. For us basically a preserve-ability tag which goes with the pointer and is checker at compile time when Tcl_Preserve is used. I should note that I have no actual idea how their stuff works in detail. Regarding it being gcc specific, it should be easy to disable that for other compilers through redefinition of whatever macros are used to implement this. Even if we are unable or unwilling to reproduce the thing we can still use macros like #define PRESERVABLE(x) x to at least add appropriate tags in the sources. No compiler checks, but at least semi-documentation in the code. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [7566c1daae] (rid 105384) by dkf on 2007-04-03 21:07:05:
- assignee changed to: "hobbs"
- subsystem changed to: "42. Memory Preservation"