summaryrefslogtreecommitdiffstats
path: root/doc/TCL_MEM_DEBUG.3
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-09-27 22:25:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-09-27 22:25:45 (GMT)
commitf5bea294b4d3f0fb680a0a6c59978540856c0e46 (patch)
tree98e90a70bdddc641d036f7e6bcf0988c5b2f2cb0 /doc/TCL_MEM_DEBUG.3
parent0d06e77cfc052c284f91df079e7010a5dddc2aa5 (diff)
downloadtcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.zip
tcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.tar.gz
tcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.tar.bz2
* Updated out-of-date reference to #define GUARD_SIZE.
Diffstat (limited to 'doc/TCL_MEM_DEBUG.3')
-rw-r--r--doc/TCL_MEM_DEBUG.37
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/TCL_MEM_DEBUG.3 b/doc/TCL_MEM_DEBUG.3
index 6b1ec78..9092661 100644
--- a/doc/TCL_MEM_DEBUG.3
+++ b/doc/TCL_MEM_DEBUG.3
@@ -3,7 +3,7 @@
'\" Copyright (c) 2000 by Scriptics Corporation.
'\" All rights reserved.
'\"
-'\" RCS: @(#) $Id: TCL_MEM_DEBUG.3,v 1.2 2000/04/28 00:47:49 ericm Exp $
+'\" RCS: @(#) $Id: TCL_MEM_DEBUG.3,v 1.3 2001/09/27 22:25:45 dgp Exp $
'\"
.so man.macros
.TH TCL_MEM_DEBUG 3 8.1 Tcl "Tcl Library Procedures"
@@ -40,8 +40,9 @@ When memory debugging is enabled, whenever a call to \fBckalloc\fR is
made, slightly more memory than requested is allocated so the memory debugging
code can keep track of the allocated memory, and eight-byte ``guard
zones'' are placed in front of and behind the space that will be
-returned to the caller. (The size of the guard zone is defined by the
-C #define \fBGUARD_SIZE\fR in \fIbaseline/src/ckalloc.c\fR -- it can
+returned to the caller. (The sizes of the guard zones are defined by the
+C #define \fBLOW_GUARD_SIZE\fR and #define \fBHIGH_GUARD_SIZE\fR
+in the file \fIgeneric/tclCkalloc.c\fR -- it can
be extended if you suspect large overwrite problems, at some cost in
performance.) A known pattern is written into the guard zones and, on
a call to \fBckfree\fR, the guard zones of the space being freed are