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.350 2010/06/22 09:24:33 mast Exp $ + || $Id: gc.c,v 1.351 2010/07/15 22:31:18 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:33:   #include <assert.h>      #include "block_alloc.h"      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; - double gc_min_time_ratio = 1.0/10001.0; /* Martys constant. */ + double gc_min_time_ratio = 1.0/10000.0; /* Martys constant. */      /* This slowness factor approximately corresponds to the average over    * the last ten gc rounds. (0.9 == 1 - 1/10) */   double gc_average_slowness = 0.9;      /* The gc will free all things with no external nonweak references    * that isn't referenced by live objects. An object is considered    * "live" if it contains code that must be executed when it is    * destructed; see gc_object_is_live for details. Live objects without    * external references are then destructed and garbage collected with
pike.git/src/gc.c:1642:   }      void debug_describe_svalue(struct svalue *s)   {    fprintf(stderr,"Svalue at %p is:\n",s);    switch(s->type)    {    case T_INT:    fprintf(stderr," %"PRINTPIKEINT"d (subtype %d)\n",s->u.integer,    s->subtype); -  break; +  return;       case T_FLOAT:    fprintf(stderr," %"PRINTPIKEFLOAT"f\n",s->u.float_number); -  break; +  return;       case T_FUNCTION:    if(s->subtype == FUNCTION_BUILTIN)    {    fprintf(stderr," Builtin function: %s\n",s->u.efun->name->str);    }else{    if(!s->u.object->prog)    {    struct program *p=id_to_program(s->u.object->program_id);    if(p)