Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7b98daa2c2738a42fe9e1865d520bbce51552bf1
Ticket: 218200ffffffffffffffffffffffffffffffffff
Tcl_DuplicateObj needs thread safety
User & Date: nobody on 2000-10-26 00:54:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.2b1"
  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: "Tcl_DuplicateObj needs thread safety"
  11. type changed to: "Bug"