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.305 2008/05/02 04:15:09 mast Exp $ + || $Id: gc.c,v 1.306 2008/05/02 04:29:37 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:4172:    case T_TYPE:    gc_mark_type_as_referenced (s->u.type); break;    }    }    }    }    }       gc_mark_run_queue();    + #if 0   #ifdef PIKE_DEBUG    {    size_t num, size;    count_memory_in_markers (&num, &size);    fprintf (stderr,    "count_memory checked %u refs, visited %u things and "    "used %"PRINTSIZET"u bytes for %"PRINTSIZET"u markers.\n",    checked, marked, size, num);    }   #endif -  + #endif       Pike_in_gc = 0;    cleanup_markers();       pop_n_elems (args);    push_ulongest (gc_counted_bytes);   }      void cleanup_gc(void)   {   #ifdef PIKE_DEBUG    if (gc_evaluator_callback) {    remove_callback(gc_evaluator_callback);    gc_evaluator_callback = NULL;    }   #endif /* PIKE_DEBUG */   }