Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: eaf9f7d1a9bd8f45ecc458004ec2be331aabf735
Ticket: 1512138fffffffffffffffffffffffffffffffff
Signal obj deletion vs. shimmering: tests missing
User & Date: msofer on 2006-06-25 14:25:45
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: ""
  10. title changed to: "Signal obj deletion vs. shimmering"
  11. type changed to: "Bug"