Branch: Tag:

2004-09-30

2004-09-30 14:07:19 by Martin Stjernholm <mast@lysator.liu.se>

Added a note about the zapping of leaked blocks.

Rev: src/main.c:1.212

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.c,v 1.211 2004/09/30 11:57:53 mast Exp $ + || $Id: main.c,v 1.212 2004/09/30 14:07:19 mast Exp $   */      #include "global.h"
1067:    * another gc so that we don't report the blocks again in the low    * level dmalloc reports. */    + #if 1 +  /* It can be a good idea to disable this to leave the blocks +  * around to be reported by an external memchecker like valgrind. +  * Ideally we should only free the svalues inside these things but +  * leave the blocks themselves. */ +    #define ZAP_LINKED_LIST_LEAKS(TYPE, START, STATICS) do { \    struct TYPE *x, *next; \    for (x = START; x; x = next) { \
1104:    gc_external_refs_zapped = 1;   #endif    + #endif +     do_gc (NULL, 1);       gc_keep_markers = 0;