Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 125d80caf92ed910710268f1a61c347f73a9e7c7
Ticket: 218738ffffffffffffffffffffffffffffffffff
Documentation for Tcl_DecrRefCount should be changed.
User & Date: nobody on 2000-10-26 01:04:46
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1952 Bug
    Version: 8.1b3
    SubmitDate: '1999-04-27'
    LastModified: '1999-08-08'
    Severity: LOW
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    OS: Other
    OSVersion: BSD/OS 4.1
    Machine: NA
    FixedDate: '1999-08-08'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Robert Hare
    
    ReproducibleScript:
    The manual pages when refering to Tcl_DecrRefCount all state that the
        object
        is freed when its reference count reaches 0.  They need to be changed to
        read that the object is freed when the reference count is less than or
        equal to zero.
        The macro Tcl_DecrRefCount actually does check for less than or equal.
        This is
        important since code may create a new object and then reach an error
        state 
        prior to incrementing the reference count by calling Tcl_SetObjResult.
        In this
        case the documentation is not clear as to what will happen if
        Tcl_DecrRefCount 
        is called with the reference count being 0.  Will the reference count be
        decremented to -1 and the object's memory lost?  It turns out the
        behavior is
        correct, just the documentation is confusing.
    
    
    
    Fixed in 8.2b3 documentation. 
    -- 08/08/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1b3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    Documentation for Tcl_DecrRefCount should be changed.
    
  11. type changed to: "Bug"