Branch: Tag:

2001-08-30

2001-08-30 23:21:54 by Martin Stjernholm <mast@lysator.liu.se>

Fixed (I think) a bug that generated a warning when using dmalloc.

Rev: src/gc.c:1.172

30:      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.171 2001/08/20 18:33:51 mast Exp $"); + RCSID("$Id: gc.c,v 1.172 2001/08/30 23:21:54 mast Exp $");      /* Run garbage collect approximately every time    * 20 percent of all arrays, objects and programs is
544: Inside #if defined(DEBUG_MALLOC)
   /* FIXME: Is the following call correct?    * Shouldn't the second argument be an offset?    */ -  dmalloc_describe_location(descblock, location, indent); +  /* dmalloc_describe_location(descblock, location, indent); */ +  /* My attempt to fix it, although I'm not really sure: /mast */ +  if (memblock) +  dmalloc_describe_location(memblock, (char *) location - (char *) memblock, indent);   #endif   }   
1224:   static void exit_gc(void)   {   #ifdef DO_PIKE_CLEANUP -  int e=0; +  size_t e=0;    struct marker *h;    for(e=0;e<marker_hash_table_size;e++)    while(marker_hash_table[e])