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.296 2007/06/19 11:52:53 grubba Exp $ + || $Id: gc.c,v 1.297 2007/06/19 18:23:52 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:3762:   #endif       if(new_threshold < GC_MIN_ALLOC_THRESHOLD)    alloc_threshold = GC_MIN_ALLOC_THRESHOLD;    else if(new_threshold > GC_MAX_ALLOC_THRESHOLD)    alloc_threshold = GC_MAX_ALLOC_THRESHOLD;    else    alloc_threshold = (ALLOC_COUNT_TYPE) new_threshold;       if (!explicit_call && last_gc_time != (cpu_time_t) -1) { - #ifdef PIKE_THREADS +    #ifdef CPU_TIME_MIGHT_BE_THREAD_LOCAL    if (cpu_time_is_thread_local)    Pike_interpreter.thread_state->auto_gc_time += last_gc_time;    else   #endif    {   #ifdef CPU_TIME_MIGHT_NOT_BE_THREAD_LOCAL    auto_gc_time += last_gc_time;   #endif    } - #else /* !PIKE_THREADS */ -  auto_gc_time += last_gc_time; - #endif /* PIKE_THREADS */ +     }       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;