Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 986d50b0ece768c193d43bcf90fe48020c31bf50
Ticket: 3611974fffffffffffffffffffffffffffffffff
InitSubsystems multiple thread issue
User & Date: dgp on 2013-06-18 13:53:46
Changes

  1. icomment:
    Thanks for pulling this back from the sidelines.
    
    The change now on 8.5 and trunk *might* be ok?  It's
    hard to be certain.  I find it easier to reason about
    a three- or four-state system than the two-state one
    you now have in place.  You can check the history to
    be sure, but I think you've just restored what was
    in place many years ago, and I fear if it had to be 
    changed before, it will have to be changed again.
    
    Also, why not have a system that's more robust against
    the routines called by TIS() and Tcl_Finalize() starting
    to misbehave?
    
    One particular concern I have with what's currently on
    the 8.5 and trunk branches is the timing of when
    Tcl_Finalize() sets subsystemsInitialized back to 0.
    With two threads concurrently attempting to finalize,
    the second will leap to the end of finalization while
    the first is still doing the teardown work.  The
    three- or four-state scheme would avoid that.
    
  2. login: "dgp"
  3. mimetype: "text/plain"