Branch: Tag:

2003-01-12

2003-01-12 16:00:14 by Martin Stjernholm <mast@lysator.liu.se>

Improved the gc strategy and made it configurable; see Pike.gc_parameters
for details.

Rev: src/backend.cmod:1.34
Rev: src/builtin.cmod:1.106
Rev: src/builtin_functions.c:1.459
Rev: src/gc.c:1.195
Rev: src/gc.h:1.95
Rev: src/interpret_functions.h:1.127
Rev: src/main.c:1.165

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: main.c,v 1.164 2003/01/11 01:52:55 mast Exp $ + || $Id: main.c,v 1.165 2003/01/12 16:00:14 mast Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.164 2003/01/11 01:52:55 mast Exp $"); + RCSID("$Id: main.c,v 1.165 2003/01/12 16:00:14 mast Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
850: Inside #if defined(DO_PIKE_CLEANUP)
   {    while(1) {    int tmp=num_objects; -  do_gc(); +  do_gc(NULL, 1);    if(num_objects >= tmp) break;    }    }
905: Inside #if defined(DO_PIKE_CLEANUP) and #if defined(PIKE_DEBUG) && defined(DEBUG_MALLOC)
   {       fprintf(stderr,"Garbage collecting..\n"); -  do_gc(); +  do_gc(NULL, 1);       count_memory_in_arrays(&num, &size);    fprintf(stderr,"Arrays left: %d (%d bytes)\n",num,size);