Branch: Tag:

2008-06-30

2008-06-30 07:42:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Debug fix.

Rev: src/gc.c:1.320

2:   || 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.319 2008/06/29 12:36:20 nilsson Exp $ + || $Id: gc.c,v 1.320 2008/06/30 07:42:32 grubba Exp $   */      #include "global.h"
3852:       if (!explicit_call && last_gc_time != (cpu_time_t) -1) {   #ifdef CPU_TIME_MIGHT_BE_THREAD_LOCAL -  if (cpu_time_is_thread_local) +  if (cpu_time_is_thread_local + #ifdef PIKE_DEBUG +  /* At high debug levels, the gc may get called before +  * the threads are initialized. +  */ +  && Pike_interpreter.thread_state + #endif +  )    Pike_interpreter.thread_state->auto_gc_time += last_gc_time;    else   #endif