Branch: Tag:

2009-11-19

2009-11-19 23:45:22 by Martin Stjernholm <mast@lysator.liu.se>

Added a trace level to make the gc log trampoline garbage.

It is enabled though trace(3,"gc") and is currently only available if pike
has been configured with the --with-rtldebug flag.

Rev: src/builtin.cmod:1.241
Rev: src/gc.c:1.336

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: builtin.cmod,v 1.240 2009/11/12 15:10:21 grubba Exp $ + || $Id: builtin.cmod,v 1.241 2009/11/19 23:45:22 mast Exp $   */      #include "global.h"
435:    *!    *! @string    *! @value "gc" -  *! Trace the start and end of each run of the garbage collector. -  *! The setting is never thread local. +  *! Trace the doings of the garbage collector. The setting is +  *! never thread local. @[level] has two different meanings: +  *! @dl +  *! @item 1..2 +  *! Trace the start and end of each gc run. +  *! @item 3.. +  *! Additionally show info about the collected garbage, to aid +  *! hunting down garbage problems. This currently shows gc'd +  *! trampolines. Note that the output can be very bulky and is +  *! somewhat low-level technical. Also note that pike currently +  *! has to be configured with @expr{--with-rtldebug@} to enable +  *! this. +  *! @enddl    *! @endstring    *!    *! @param all_threads