Overview
| Artifact ID: | 7b98daa2c2738a42fe9e1865d520bbce51552bf1 |
|---|---|
| Ticket: | 218200ffffffffffffffffffffffffffffffffff
Tcl_DuplicateObj needs thread safety |
| User & Date: | nobody on 2000-10-26 00:54:25 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2433 Bug Version: 8.2b1 SubmitDate: '1999-07-22' LastModified: '1999-07-30' Severity: MED Status: Closed Submitter: techsupp ChangedBy: redman OS: Windows NT OSVersion: 4.0 sp5 Machine: X86 FixedDate: '2000-10-25' FixedInVersion: NA ClosedDate: '1999-07-30' Name: David Gravereaux CVS: RCS: @(#) $Id: tclObj.c,v 1.9 1999/06/15 01:16:23 hershey Exp $ ReproducibleScript: N/A I can only explain it. ObservedBehavior: In a multithreaded extension I am working on, I have to create Tcl_Obj copies from outside the thread context of Tcl. In rare instances, there is a possibility that the refcount will be greater than 1 (Tcl_IsShared returns true) and I appropriately Tcl_DuplicateObj. Although I have realized that the copies are only used in a "read-only" fashion and I don't need to Tcl_DuplicateObj, it did frighten me to see that Tcl_DuplicateObj isn't thread-safe. As the Object allocator is a global entity, I do feel that access to it deserves a mutexlock. The function is already threadsafe. David agrees. -- 07/30/1999 redman - foundin changed to: "obsolete: 8.2b1"
- 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: "Tcl_DuplicateObj needs thread safety"
- type changed to: "Bug"