diff options
author | dgp <dgp@users.sourceforge.net> | 2001-09-27 22:25:45 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2001-09-27 22:25:45 (GMT) |
commit | f5bea294b4d3f0fb680a0a6c59978540856c0e46 (patch) | |
tree | 98e90a70bdddc641d036f7e6bcf0988c5b2f2cb0 | |
parent | 0d06e77cfc052c284f91df079e7010a5dddc2aa5 (diff) | |
download | tcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.zip tcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.tar.gz tcl-f5bea294b4d3f0fb680a0a6c59978540856c0e46.tar.bz2 |
* Updated out-of-date reference to #define GUARD_SIZE.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/TCL_MEM_DEBUG.3 | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,8 @@ 2001-09-27 Don Porter <dgp@users.sourceforge.net> + * doc/TCL_MEM_DEBUG.3: Updated out-of-date reference to + #define GUARD_SIZE. + * doc/UpVar.3 (Tcl_UpVar*): * generic/tcl{Int}.decls (Tcl_UpVar*,TclFindProc,TclGetFrame): * generic/tclInt.h 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 |