Branch: Tag:

2002-11-24

2002-11-24 22:47:06 by Martin Stjernholm <mast@lysator.liu.se>

Changed some block_allocs to tune to memory pages.

Rev: src/backend.cmod:1.31
Rev: src/constants.c:1.44
Rev: src/constants.h:1.28
Rev: src/gc.c:1.189
Rev: src/interpret.c:1.283
Rev: src/las.c:1.315
Rev: src/mapping.c:1.155
Rev: src/multiset.c:1.59
Rev: src/multiset.h:1.29
Rev: src/object.c:1.210
Rev: src/object.h:1.75
Rev: src/pike_memory.c:1.127
Rev: src/program.c:1.462
Rev: src/program.h:1.169

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.188 2002/10/11 01:39:31 nilsson Exp $ + || $Id: gc.c,v 1.189 2002/11/24 22:47:06 mast Exp $   */      #include "global.h"
31:      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.188 2002/10/11 01:39:31 nilsson Exp $"); + RCSID("$Id: gc.c,v 1.189 2002/11/24 22:47:06 mast Exp $");      /* Run garbage collect approximately every time    * 20 percent of all arrays, objects and programs is
42:   #define MIN_ALLOC_THRESHOLD 1000   #define MAX_ALLOC_THRESHOLD 10000000   #define MULTIPLIER 0.9 - #define MARKER_CHUNK_SIZE 1023 - #define GC_LINK_CHUNK_SIZE 63 + #define GC_LINK_CHUNK_SIZE 64      /* The gc will free all things with no external references that isn't    * referenced by undestructed objects with destroy() lfuns (known as
227:   #define find_marker debug_find_marker   #endif    - PTR_HASH_ALLOC_FIXED(marker,MARKER_CHUNK_SIZE) + PTR_HASH_ALLOC_FIXED_FILL_PAGES(marker,2)      #ifdef PIKE_DEBUG