pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:18:   #include "error.h"   #include "pike_memory.h"   #include "pike_macros.h"   #include "pike_types.h"   #include "time_stuff.h"      #include "gc.h"   #include "main.h"   #include <math.h>    - RCSID("$Id: gc.c,v 1.34 1998/04/10 04:48:41 hubbe Exp $"); + RCSID("$Id: gc.c,v 1.35 1998/04/20 18:53:16 grubba Exp $");      /* Run garbage collect approximate every time we have    * 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:396: Inside #if defined(DEBUG)
  #ifdef DEBUG    if(check_for)    {    if(check_for == a)    {    gdb_gc_stop_here(a);    }    return 0;    }   #endif -  return getmark(a)->refs++; +  return add_ref(getmark(a));   }      static void init_gc(void)   {    INT32 tmp3;    /* init hash , hashsize will be a prime between num_objects/8 and    * num_objects/4, this will assure that no re-hashing is needed.    */    tmp3=my_log2(num_objects);