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.173 2001/09/06 16:53:43 mast Exp $"); + RCSID("$Id: gc.c,v 1.174 2001/09/06 21:23:00 hubbe 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:219:    (X)->frame = 0;   #endif      #ifdef PIKE_DEBUG   #undef get_marker   #define get_marker debug_get_marker   #undef find_marker   #define find_marker debug_find_marker   #endif    - PTR_HASH_ALLOC(marker,MARKER_CHUNK_SIZE) + PTR_HASH_ALLOC_FIXED(marker,MARKER_CHUNK_SIZE)      #ifdef PIKE_DEBUG      #undef get_marker   #define get_marker(X) ((struct marker *) debug_malloc_pass(debug_get_marker(X)))   #undef find_marker   #define find_marker(X) ((struct marker *) debug_malloc_pass(debug_find_marker(X)))      int gc_in_cycle_check = 0;   static unsigned delayed_freed, weak_freed, checked, marked, cycle_checked, live_ref;
pike.git/src/gc.c:1225:    if (m->refs == *(INT32 *) a)    m->flags |= GC_NOT_REFERENCED;    return ret;   }      static void init_gc(void)   {   #ifdef PIKE_DEBUG    if (!gc_is_watching) {   #endif -  init_marker_hash(); +  low_init_marker_hash(num_objects);    get_marker(rec_list.data); /* Used to simplify fencepost conditions. */   #ifdef PIKE_DEBUG    }   #endif   }      static void exit_gc(void)   {   #ifdef DO_PIKE_CLEANUP    size_t e=0;