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.189 2002/11/24 22:47:06 mast Exp $ + || $Id: gc.c,v 1.190 2002/11/25 00:57:43 nilsson 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:24:   #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.189 2002/11/24 22:47:06 mast Exp $"); + RCSID("$Id: gc.c,v 1.190 2002/11/25 00:57:43 nilsson 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:2828: Inside #if defined(ALWAYS_GC)
     #ifdef ALWAYS_GC    ADD_GC_CALLBACK();   #else    if(d_flag > 3) ADD_GC_CALLBACK();   #endif       return objs;   }    - /*! @decl mapping(string:int|float) _gc_status() + /*! @decl mapping(string:int|float) gc_status() +  *! @belongs Debug    *!    *! Get statistics from the garbage collector.    *!    *! @returns    *! A mapping with the following content will be returned:    *! @mapping    *! @member int "num_objects"    *! Number of objects.    *! @member int "num_allocs"    *! Number of memory allocations.