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.140 2000/10/04 05:12:12 hubbe Exp $"); + RCSID("$Id: gc.c,v 1.141 2000/10/12 01:00:41 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:1041: Inside #if defined(PIKE_DEBUG)
   found_where=" in a mapping";    gc_check_all_mappings();       found_where=" in a program";    gc_check_all_programs();       found_where=" in an object";    gc_check_all_objects();      #ifdef PIKE_DEBUG -  if(master_object) gc_external_mark2(master_object,0," &master_object"); +  if(master_object) { +  found_where = " as master_object"; +  gc_external_mark2(master_object,0," &master_object"); +  }    {    extern struct mapping *builtin_constants; -  if(builtin_constants) +  if(builtin_constants) { +  found_where = " as builtin_constants";    gc_external_mark2(builtin_constants,0," &builtin_constants");    } -  +  }   #endif       found_where=" in a module";    call_callback(& gc_callbacks, (void *)0);       found_where="";    check_for=orig_check_for;      #ifdef DEBUG_MALLOC    {