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.270 2005/05/19 22:35:27 mast Exp $ + || $Id: gc.c,v 1.271 2006/01/23 14:00:16 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:3316:    if(GC_VERBOSE_DO(1 ||) gc_trace)    {    char timestr[40];    if (last_gc_time != (cpu_time_t) -1)    sprintf (timestr, ", %ld ms",    (long) (last_gc_time / (CPU_TIME_TICKS / 1000)));    else    timestr[0] = 0;   #ifdef DO_PIKE_CLEANUP    if (gc_destruct_everything) -  fprintf(stderr, "done (%u was destructed)%s\n", -  destroy_count, timestr); +  fprintf(stderr, "done (%u %s destructed)%s\n", +  destroy_count, destroy_count == 1 ? "was" : "were", timestr);    else   #endif    fprintf(stderr, "done (%"PRINTSIZET"d of %"PRINTSIZET"d " -  "was unreferenced)%s\n", -  unreferenced, start_num_objs, timestr); +  "%s unreferenced)%s\n", +  unreferenced, start_num_objs, +  unreferenced == 1 ? "was" : "were", +  timestr);    }    }      #ifdef PIKE_DEBUG    UNSET_ONERROR (uwp);    if (max_gc_stack_frames > max_tot_gc_stack_frames)    max_tot_gc_stack_frames = max_gc_stack_frames;    tot_cycle_checked += cycle_checked;    tot_live_rec += live_rec, tot_frame_rot += frame_rot;   #endif