pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: gc.c,v 1.219 2003/06/05 21:52:03 mast Exp $ + || $Id: gc.c,v 1.220 2003/06/30 17:06:08 mast Exp $   */      #include "global.h"      struct callback *gc_evaluator_callback=0;      #include "array.h"   #include "multiset.h"   #include "mapping.h"   #include "object.h"
pike.git/src/gc.c:26:   #include "interpret.h"   #include "bignum.h"   #include "pike_threadlib.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.219 2003/06/05 21:52:03 mast Exp $"); + RCSID("$Id: gc.c,v 1.220 2003/06/30 17:06:08 mast Exp $");      int gc_enabled = 1;      /* These defaults are only guesses and hardly tested at all. Please improve. */   double gc_garbage_ratio_low = 0.2;   double gc_time_ratio = 0.05;   double gc_garbage_ratio_high = 0.5;      /* This slowness factor approximately corresponds to the average over    * the last ten gc rounds. (0.9 == 1 - 1/10) */
pike.git/src/gc.c:1427: Inside #if defined(PIKE_DEBUG) and #if defined(PIKE_DEBUG)
   if(master_object)    gc_external_mark2(master_object,0," as master_object");    {    extern struct mapping *builtin_constants;    if(builtin_constants)    gc_external_mark2(builtin_constants,0," as builtin_constants");    }   #endif       found_where=0; -  call_callback(& gc_callbacks, (void *)0); +  call_callback(& gc_callbacks, NULL);       found_where=orig_found_where;    check_for=orig_check_for;      #ifdef DEBUG_MALLOC    {    extern void dmalloc_find_references_to(void *);   #if 0    fprintf(stderr,"**DMALLOC Looking for references:\n");    dmalloc_find_references_to(a);
pike.git/src/gc.c:2610: Inside #if defined(PIKE_DEBUG)
   {    extern struct mapping *builtin_constants;    if(builtin_constants)    gc_external_mark2(builtin_constants,0," as builtin_constants");    }   #endif       /* These callbacks are mainly for the check pass, but can also    * do things that are normally associated with the mark pass    */ -  call_callback(& gc_callbacks, (void *)0); +  call_callback(& gc_callbacks, NULL);       GC_VERBOSE_DO(fprintf(stderr, "| check: %u references in %d things, "    "counted %"PRINTSIZET"u weak refs\n",    checked, num_objects, gc_ext_weak_refs));       Pike_in_gc=GC_PASS_MARK;       /* Anything after and including gc_internal_* in the linked lists    * are considered to lack external references. The mark pass move    * externally referenced things in front of these pointers. */