Overview
| Artifact ID: | eaf9f7d1a9bd8f45ecc458004ec2be331aabf735 |
|---|---|
| Ticket: | 1512138fffffffffffffffffffffffffffffffff
Signal obj deletion vs. shimmering: tests missing |
| User & Date: | msofer on 2006-06-25 14:25:45 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: ""
- title changed to: "Signal obj deletion vs. shimmering"
- type changed to: "Bug"