pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:22:   #include "time_stuff.h"   #include "constants.h"   #include "interpret.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.79 2000/04/23 03:01:25 mast Exp $"); + RCSID("$Id: gc.c,v 1.80 2000/04/23 03:17:11 mast 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:653:    if(m->saved_refs != -1)    if(m->saved_refs != *(INT32 *)a) {    fprintf(stderr,"**Refs changed in gc() pass %d. Expected %ld, got %ld.\n",    Pike_in_gc, (long)m->saved_refs, (long)*(INT32 *)a);    describe(a);    locate_references(a);    fprintf(stderr,"##### Continuing search for more bugs....\n");    fatal_after_gc="Refs changed in gc()\n";    }    m->saved_refs = *(INT32 *)a; + #else +  m = get_marker(a);   #endif       m->flags |= GC_CHECKED;    return add_ref(m);   }      static void init_gc(void)   {   #if 0    INT32 tmp3;