pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:23:   #include "constants.h"   #include "interpret.h"   #include "bignum.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.178 2001/12/10 02:08:14 mast Exp $"); + RCSID("$Id: gc.c,v 1.179 2001/12/16 18:51:47 mast Exp $");      /* Run garbage collect approximately every time    * 20 percent of all arrays, objects and programs is    * garbage.    */      #define GC_CONST 20   #define MIN_ALLOC_THRESHOLD 1000   #define MAX_ALLOC_THRESHOLD 10000000   #define MULTIPLIER 0.9
pike.git/src/gc.c:1335: Inside #if defined(PIKE_DEBUG)
   {    i=1;    init_gc();    }    Pike_in_gc = GC_PASS_LOCATE;       /* Disable debug, this may help reduce recursion bugs */    tmp=d_flag;    d_flag=0;    -  fprintf(stderr,"**Looking for references:\n"); +  fprintf(stderr,"**Looking for references to %p:\n", a);       check_for=a;       found_where=" in an array";    gc_check_all_arrays();       found_where=" in a multiset";    gc_check_all_multisets();       found_where=" in a mapping";
pike.git/src/gc.c:1380: Inside #if defined(PIKE_DEBUG) and #if defined(DEBUG_MALLOC)
  #ifdef DEBUG_MALLOC    {    extern void dmalloc_find_references_to(void *);   #if 0    fprintf(stderr,"**DMALLOC Looking for references:\n");    dmalloc_find_references_to(a);   #endif    }   #endif    +  fprintf(stderr,"**Done looking for references to %p.\n", a); +     Pike_in_gc = orig_in_gc;    if(i) exit_gc();    d_flag=tmp;   }   #endif      #ifdef PIKE_DEBUG      void debug_gc_add_extra_ref(void *a)   {