Overview
| Artifact ID: | 125d80caf92ed910710268f1a61c347f73a9e7c7 |
|---|---|
| Ticket: | 218738ffffffffffffffffffffffffffffffffff
Documentation for Tcl_DecrRefCount should be changed. |
| User & Date: | nobody on 2000-10-26 01:04:46 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.1b3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Documentation for Tcl_DecrRefCount should be changed.
- type changed to: "Bug"