Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-12-08
20:50 • Closed ticket [1571056fff]: TclInvalidateNsPath needed in TclTeardownNamespace?<... artifact: 78862f0828 user: dkf
2006-10-05
01:21 • New ticket [1571056fff]. artifact: 85cfa0f4d7 user: msofer

TclInvalidateNsPath needed in TclTeardownNamespace?

Closed / Fixed1571056fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-05 01:21:08
(from code inspection, without claiming to have really
understood everything)

I think that TclTeardownNamespace fails to update the
epoch in namespaces that have the dying ns in their
path. This could be achieved by a call to
TclInvalidateNsPath, or directly by adding at line 1112

 if (nsPtr->commandPathSourceList != NULL) { 
     NamespacePathEntry *nsPathPtr =
nsPtr->commandPathSourceList;
     do {
+        if (nsPathPtr->nsPtr != NULL) {
+            nsPathPtr->creatorNsPtr->cmdRefEpoch++;
+        }
         nsPathPtr->nsPtr = NULL;
         nsPathPtr = nsPathPtr->nextPtr;
     } while (nsPathPtr != NULL);
 }
dkf Closed ticket [1571056fff]. [History diff]2006-12-08 20:50:48
Log in (anonymous is fine) to add a comment.