summaryrefslogtreecommitdiff
path: root/allchblk.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-01-17 21:34:11 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:55 +0200
commitce3582069e602d1e6d1d1b17a2336484150fdef5 (patch)
treeaa551be24ae9aa1a96cf9cc8d628752b0f88f7c4 /allchblk.c
parent548e10e7a9bb0bef92f12f2b974670e30d69d914 (diff)
2011-01-17 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (GC_use_entire_heap): Change type to int (as declared in gc.h); set the default value depending on new GC_USE_ENTIRE_HEAP macro. * misc.c (GC_init): Test GC_USE_ENTIRE_HEAP environment variable to alter the default value of GC_use_entire_heap. * doc/README.environment (GC_USE_ENTIRE_HEAP): Document. * doc/README.macros (GC_USE_ENTIRE_HEAP): Ditto.
Diffstat (limited to 'allchblk.c')
-rw-r--r--allchblk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/allchblk.c b/allchblk.c
index 9ed5178..440b051 100644
--- a/allchblk.c
+++ b/allchblk.c
@@ -18,7 +18,11 @@
#include <stdio.h>
-GC_bool GC_use_entire_heap = 0;
+#ifdef GC_USE_ENTIRE_HEAP
+ int GC_use_entire_heap = TRUE;
+#else
+ int GC_use_entire_heap = FALSE;
+#endif
/*
* Free heap blocks are kept on one of several free lists,