summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authormdejong <mdejong>2003-07-24 18:16:30 (GMT)
committermdejong <mdejong>2003-07-24 18:16:30 (GMT)
commitf13e7399a660f3532ea6069de8ddb3cc35c9fdc8 (patch)
tree420611bcf77c01f467cd63a0bb099405c28b3cdb /generic/tcl.h
parentc9f374a79be4e735649dad153d78479994f0cf0e (diff)
downloadtcl-f13e7399a660f3532ea6069de8ddb3cc35c9fdc8.zip
tcl-f13e7399a660f3532ea6069de8ddb3cc35c9fdc8.tar.gz
tcl-f13e7399a660f3532ea6069de8ddb3cc35c9fdc8.tar.bz2
* generic/tcl.h: Revert change made on 2003-07-21
since it made the sizeof(Tcl_Obj) different for regular vs mem debug builds. * generic/tclInt.h: Define TclDecrRefCount in terms of Tcl_DbDecrRefCount which removes one layer of inderection. * generic/tclObj.c (TclDbInitNewObj, Tcl_DbIncrRefCount, Tcl_DbDecrRefCount, Tcl_DbIsShared): Define ThreadSpecificData that contains a hashtable. The table is used to ensure that a Tcl_Obj is only acted upon in the thread that allocated it. This checking code is enabled only when mem debug and threads are enabled.
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index bbe13a7..1b02611 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tcl.h,v 1.161 2003/07/22 00:59:58 mdejong Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.162 2003/07/24 18:16:30 mdejong Exp $
*/
#ifndef _TCL
@@ -778,15 +778,6 @@ typedef struct Tcl_Obj {
VOID *ptr2;
} twoPtrValue;
} internalRep;
-
- /*
- * Thread id used to check that calls to Tcl_IncrRefCount,
- * Tcl_DecrRefCount, and Tcl_IsShared are being made
- * from the thread that originally allocated the Tcl_Obj.
- */
-#if defined(TCL_MEM_DEBUG) && defined(TCL_THREADS)
- Tcl_ThreadId allocThread;
-#endif
} Tcl_Obj;