Skip to content
Tcl Source Code View Ticket
Login

View Ticket

memory.n wrong (out of date?)

Closed / Fixed487677ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-11-30 21:36:23
The commands documented in doc/memory.n are:

memory info
memory trace on|off
memory validate on|off
memory trace_on_at_malloc $count
memory break_on_malloc $count
memory display file

The commands actually implemented in
generic/tclCkalloc.c are:

checkmem
memory active $file
memory break_on_malloc $count
memory info
memory init on|off
memory tag $string
memory trace on|off
memory trace_on_at_malloc $count
memory validate on|off

They ought to match.

The attached patch bring the MemoryCmd() comment
within generic/tclCkalloc.c up to date, and updating
doc/memory.n is left to the maintainer.
dgpplain2001-12-01 04:36:28
File Added - 14014: memory.patch
dgpplain2001-12-18 07:43:02
Logged In: YES 
user_id=80530

Here's an updated patch:

        * generic/tclCkalloc.c (MemoryCmd,
TclFinalizeMemorySubsystem):
        Added the [memory onexit] command, intended to
replace [checkmem].

        * doc/DumpActiveMemory.3:
        * doc/memory.n: Updated documentation for [memory]
and related
        matters.  [Bug 487677]

        * mac/tclMacBOAMain.c (Tcl_Main, CheckmemCmd):
Removed all the
        machinery for the [checkmem] command that is
completely duplicated
        by code in generic/tclCkalloc.c.

        * generic/tclBinary.c:
        * generic/tclListObj.c:
        * generic/tclObj.c:
        * generic/tclStringObj.c: Removed references to
[checkmem] in
        comments, referencing [memory active] instead, since
it is
        documented.
dgpplain2001-12-18 07:43:03
File Deleted - 14014: 



File Added - 14828: memory.patch
hobbsplain2001-12-29 05:56:22
Logged In: YES 
user_id=72656

looks good to me.
dgpplain2001-12-29 06:36:42
Logged In: YES 
user_id=80530

committed to HEAD (8.4a4) after a few improvements.
Final version of patch attached.
dgpplain2001-12-29 06:36:43
File Deleted - 14828: 



File Added - 15208: final.patch
Log in (anonymous is fine) to add a comment.

Attachments: