Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: df22024f3d266172a8650d0f6dc206e944e665a3
Ticket: 2001201fffffffffffffffffffffffffffffffff
Tcl_Exit() shouldn't call the full Tcl_Finalize() path
User & Date: ferrieux on 2009-07-22 14:25:16
Changes

  1. icomment:
    OK, investigation complete. When we reformed Tcl_Exit/Tcl_Finalize, we indeed removed Tcl_FinalizeThread from the exit path. We re-established what we believed to be the only important part of it by calling Tcl_FinalizeIOSubsystem directly, but *not* the loop over the per-thread exit handlers. 
    
    ATM I see two possibilities:
     (a) Re-establish Tcl_FinalizeThread for the calling thread in Tcl_Exit
     (b) Duplicate the loop over per-thread-exit handlers.
    
    The key to the decision being, is the rest of Tcl_FinalizeThread (Notifier+Async+ThreadObjects+ThreadData) potentially harmful in multithreaded setups ?
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"