Overview
| Artifact ID: | 4c2fcd1d5ed612f29cc303f4d7bcb3dde8e6e769 |
|---|---|
| Ticket: | 3475569fffffffffffffffffffffffffffffffff
Unexpected behavior / Panic / Tcl_Obj deletion management |
| User & Date: | dgp on 2012-01-26 04:36:57 |
Changes
- icomment:
Here's what I've applied to do the sort of test you are suggesting: Index: generic/tclObj.c ================================================================== --- generic/tclObj.c +++ generic/tclObj.c @@ -382,10 +382,13 @@ */ void TclInitObjSubsystem(void) { + ObjInitDeletionContext(context); + ObjDeletionLock(context); + Tcl_MutexLock(&tableMutex); typeTableInitialized = 1; Tcl_InitHashTable(&typeTable, TCL_STRING_KEYS); Tcl_MutexUnlock(&tableMutex); @@ -483,10 +486,13 @@ */ void TclFinalizeObjects(void) { + ObjInitDeletionContext(context); + ObjDeletionUnlock(context); + Tcl_MutexLock(&tableMutex); if (typeTableInitialized) { Tcl_DeleteHashTable(&typeTable); typeTableInitialized = 0; } - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"