Artifacts Associated With Ticket 1512138
Ticket change [eaf9f7d1a9] (rid 103459) by msofer on 2006-06-25 14:25:45:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In a discussion on TCLCORE, jcw requested the possibility to determine if the obj is being deleted or shimmered when he receives a cal to its freeIntRepProc (a link to the discussion will be added here when the tclcore archives return online). This patch implements this possibility by insuring that on deletion the string rep is invalidated first, and indicating the fact that the string rep is invalid by a negative length. Note that a NULL string rep cannot be used to signal this fact, as the bytes field is currently used to implement the deletion stack. A negative length will always indicate that the object is being freed: - if the obj is being freed, the stringrep is always invalidated and the length set to -1 before calling the freeIntRepProc - if the obj is being shimmered, the setFromAnyProc of the new type will have insured that a string rep is available before freeing the old intrep. This looks pretty safe and cheap to me; requesting review by dkf before commit.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: ""
- title initialized to: "Signal obj deletion vs. shimmering"
- type initialized to: "Bug"
Ticket change [f83d531fdf] (rid 91506) by msofer on 2006-06-25 21:25:46:
- icomment:
File Added - 182927: signalDeletion.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "signalDeletion.patch" [febb29b375] (rid 108638) by msofer on 2006-06-25 21:25:46.
Ticket change [a06200a89f] (rid 96804) by dkf on 2006-06-30 15:14:35:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=79902 Patch looks OK modulo one or two comment-formatting points, but please add a function (exported through tclInt.decls) for checking whether an object is being deleted. This will help to ensure that extensions do not encode the information that length==-1 is magical, and should prevent pain later on.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [37be8eea6a] (rid 112082) by msofer on 2006-09-30 01:04:44:
- priority changed to: "8"
Ticket change [c005cff326] (rid 102340) by msofer on 2006-09-30 21:28:09:
- icomment:
Logged In: YES user_id=148712 The tclcore thread is at http://aspn.activestate.com/ASPN/Mail/Message/3168511
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [b36e28daf2] (rid 124860) by msofer on 2006-10-01 02:01:58:
- closedate changed to: "2006-09-30T19:01:58"
- closer changed to: "msofer"
- icomment:
File Added - 196009: signalDeletion.patch Logged In: YES user_id=148712 Revised patch committed, provides the new function int TclObjBeingDeleted(Tcl_Obj *objPtr) in the internal stubs table.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "msofer"
Add attachment "signalDeletion.patch" [4a98764972] (rid 126562) by msofer on 2006-10-01 02:01:58.
Ticket change [ef292bfea6] (rid 108945) by msofer on 2006-10-02 17:46:49:
- icomment:
Logged In: YES user_id=148712 Missing tests in the testsuite!
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "msofer"
- icomment:
Ticket change [c3cb392d7d] (rid 111726) by msofer on 2008-06-28 23:01:05:
- icomment:
data_type - 110894 Logged In: YES user_id=148712 Originator: YES Moving to bugs for the missing tests
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "10. Objects"
- title changed to: "Signal obj deletion vs. shimmering: tests missing"
- username: "msofer"
- icomment:
Ticket change [ca5b4daf89] (rid 95330) by msofer on 2009-05-01 08:20:50:
- priority changed to: "7 High"
Ticket change [02bec280a6] (rid 119698) by msofer on 2009-12-11 10:18:28:
- priority changed to: "5 Medium"
Ticket change [717bf716c4] (rid 100684) by msofer on 2011-04-12 09:44:56:
- icomment:
allow_comments - 1
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "msofer"
- icomment:
Ticket change [f8f5555849] (rid 91625) by msofer on 2011-04-12 09:44:57:
- closedate changed to: "2011-04-12T02:44:57"
- closer changed to: "msofer"