Branch: Tag:


2004-04-18 02:16:06 by Martin Stjernholm <>

Improved debug during cleanup: If there are internal refs that the gc don't
know about it will free them during the leak report. When they then are
freed from their real places later on, they will run out of refs. Therefore
the debug now prints all locations the leaked objects are freed from.

Rev: src/array.h:1.59
Rev: src/dmalloc.h:1.50
Rev: src/gc.c:1.253
Rev: src/gc.h:1.112
Rev: src/main.c:1.200
Rev: src/mapping.h:1.54
Rev: src/multiset.h:1.34
Rev: src/object.h:1.82
Rev: src/program.c:1.563
Rev: src/program.h:1.202

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: dmalloc.h,v 1.49 2004/04/03 18:24:24 mast Exp $ + || $Id: dmalloc.h,v 1.50 2004/04/18 02:16:05 mast Exp $   */      #ifndef DMALLOC_H
35: Inside #if defined (PIKE_DEBUG) && defined (DO_PIKE_CLEANUP)
     #if defined (PIKE_DEBUG) && defined (DO_PIKE_CLEANUP)   extern int verbose_debug_exit; + extern int gc_external_refs_zapped; + void gc_check_zapped (void *a, TYPE_T type, const char *file, int line);   #endif      #ifdef DO_PIKE_CLEANUP