Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bcc9973fd43b98817fa8550cb2304d9ba2c61a67
Ticket: 932314ffffffffffffffffffffffffffffffffff
epoch safety in threads?
User & Date: dgp on 2004-04-16 22:12:53
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    The routine Tcl_FSGetInternalRep(path, fs)
    helps work around the worst of these issues.
    I was mostly worried that a path value would
    get passed in to a filesystem that claimed
    it earlier, but no longer should.
    
    In order to access the internal rep of that
    path, though, the filesyste, has to make
    that call, and an epoch check could, and
    IMHO should, go in there.  In fact any routine
    that returns information from a cached
    internal rep of a Tcl_Obj ought to verify
    that the cache is still valid.
    
    Tcl_ConvertToPathType() takes care
    of the check against the thread-level
    filesystem epoch.  All that's missing
    is a check that the thread-level value
    is up to date with the process-level value.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"