summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2007-12-19 00:58:11 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:41 +0200
commitd564f157893bc8132902d34cb88a294414c479b3 (patch)
treee9d7e6796ff6cd8e5c3808beb8638446bd7e3ccb /allchblk.c
parentc667f6bab30fedee2d940597a8275bda4bf07ecb (diff)
2007-12-18 Hans Boehm <Hans.Boehm@hp.com>
* gc_cpp.cc: Don't include gc_cpp.h from local directory. 2007-12-18 Hans Boehm <Hans.Boehm@hp.com> (really Adam Megacz) * allchblk.c, configure.ac (add --enable-munmap) * configure: Regenerate.
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/allchblk.c b/allchblk.c
index 807a703..2be870e 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -392,13 +392,15 @@ void GC_unmap_old(void)
word sz;
unsigned short last_rec, threshold;
int i;
-# define UNMAP_THRESHOLD 6
+# ifndef MUNMAP_THRESHOLD
+# define MUNMAP_THRESHOLD 6
+# endif
for (i = 0; i <= N_HBLK_FLS; ++i) {
for (h = GC_hblkfreelist[i]; 0 != h; h = hhdr -> hb_next) {
hhdr = HDR(h);
if (!IS_MAPPED(hhdr)) continue;
- threshold = (unsigned short)(GC_gc_no - UNMAP_THRESHOLD);
+ threshold = (unsigned short)(GC_gc_no - MUNMAP_THRESHOLD);
last_rec = hhdr -> hb_last_reclaimed;
if ((last_rec > GC_gc_no || last_rec < threshold)
&& threshold < GC_gc_no /* not recently wrapped */) {