Branch: Tag:

2004-09-27

2004-09-27 21:37:23 by Martin Stjernholm <mast@lysator.liu.se>

Fixed --with-cleanup-on-exit to work without rtldebug.

Rev: src/array.h:1.64
Rev: src/dmalloc.h:1.53
Rev: src/gc.c:1.259
Rev: src/gc.h:1.116
Rev: src/main.c:1.210
Rev: src/mapping.h:1.58
Rev: src/multiset.h:1.37
Rev: src/object.h:1.87
Rev: src/pike_memory.c:1.156
Rev: src/program.h:1.210
Rev: src/stralloc.c:1.168
Rev: src/stralloc.h:1.82

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: stralloc.c,v 1.167 2004/09/18 22:02:45 nilsson Exp $ + || $Id: stralloc.c,v 1.168 2004/09/27 21:37:23 mast Exp $   */      #include "global.h"
1818:    empty_pike_string = make_shared_string("");   }    - #ifdef DEBUG_MALLOC + #ifdef DO_PIKE_CLEANUP   struct shared_string_location *all_shared_string_locations;   #endif   
1833:    empty_pike_string = 0;    }    - #if defined(PIKE_DEBUG) && defined(DEBUG_MALLOC) + #ifdef DO_PIKE_CLEANUP    while(all_shared_string_locations)    {    struct shared_string_location *x=all_shared_string_locations;
1842: Inside #if defined(PIKE_DEBUG) && defined(DEBUG_MALLOC)
   x->s=0;    }    -  if(verbose_debug_exit) +  if (exit_with_cleanup)    {    INT32 num,size;    count_memory_in_strings(&num,&size);    if(num)    {    fprintf(stderr,"Strings left: %d (%d bytes) (zapped)\n",num,size); -  + #ifdef PIKE_DEBUG    dump_stralloc_strings(); -  + #endif    }    }   #endif