Branch: Tag:

2010-04-11

2010-04-11 18:00:03 by Martin Stjernholm <mast@lysator.liu.se>

Made it possible to control gc_debug with a GC_DEBUG define.

Rev: src/gc.c:1.342

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.341 2010/04/11 17:24:47 mast Exp $ + || $Id: gc.c,v 1.342 2010/04/11 18:00:03 mast Exp $   */      #include "global.h"
91:    * Note: Keep the doc for lfun::destroy up-to-date with the above.    */    + /* #define GC_DEBUG */   /* #define GC_VERBOSE */   /* #define GC_CYCLE_DEBUG */   /* #define GC_STACK_DEBUG */
3447:    Pike_in_gc=GC_PASS_PREPARE;    gc_start_time = get_cpu_time();    gc_start_real_time = get_real_time(); + #ifdef GC_DEBUG +  gc_debug = (GC_DEBUG + 0) || 1; + #else    gc_debug = d_flag; -  + #endif   #ifdef PIKE_DEBUG    SET_ONERROR(uwp, fatal_on_error, "Shouldn't get an exception inside the gc.\n");    if (gc_is_watching)