Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tclInt.h broken

Closed / Fixed217920ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:45:59
OriginalBugID: 3308 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-08'
Severity: LOW
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 3321
OS: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-11-08'


Name:
Peter Spjuth

ReproducibleScript:
The new tclInt.h (1.36) in the CVS repository is broken when compiling
with TCL_COMPILE_STATS.

Patch:
Index: tclInt.h
===================================================================
RCS file: /cvsroot/tcl/generic/tclInt.h,v
retrieving revision 1.36
diff -c -r1.36 tclInt.h
*** tclInt.h1999/10/30 00:27:261.36
--- tclInt.h1999/11/02 22:41:28
***************
*** 2046,2057 ****
  #ifdef TCL_COMPILE_STATS
  #  define TclIncrObjsAllocated()  Tcl_MutexLock(&tclCompStatsMutex);  !     tclObjsAlloced++;
!     Tcl_MutexUnLock(&tclCompStatsMutex)
  #  define TclIncrObjsFreed()  Tcl_MutexLock(&tclCompStatsMutex);  tclObjsFreed++;  !     Tcl_MutexUnLock(&tclCompStatsMutex)
  #else
  #  define TclIncrObjsAllocated()
  #  define TclIncrObjsFreed()
--- 2046,2057 ----
  #ifdef TCL_COMPILE_STATS
  #  define TclIncrObjsAllocated()  Tcl_MutexLock(&tclCompStatsMutex);  !     tclObjsAlloced++;  !     Tcl_MutexUnlock(&tclCompStatsMutex)
  #  define TclIncrObjsFreed()  Tcl_MutexLock(&tclCompStatsMutex);  tclObjsFreed++;  !     Tcl_MutexUnlock(&tclCompStatsMutex)
  #else
  #  define TclIncrObjsAllocated()
  #  define TclIncrObjsFreed()

PatchFiles:
tclInt.h
welch Closed ticket [217920ffff]. [History diff]2000-10-26 08:09:13
dgp Ticket [217920ffff]: 3 changes [History diff]2001-04-14 02:38:02
Log in (anonymous is fine) to add a comment.