summaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-12 00:27:31 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-12 00:27:31 +0000
commit2a3edec56bee49d4a83483777cee1f99d73112f2 (patch)
tree81c813b5d55e959c7d6c49278a2c5c9c344cf7d5 /gcc/params.def
parent141c6b3e14e2778f6f9fe6c1974084f4e15f8688 (diff)
downloadgcc-2a3edec56bee49d4a83483777cee1f99d73112f2.tar.gz
* params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
* doc/invoke.texi: Document them. * ggc-page.c: Include params.h. Remove definitions of GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED. Replace GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define. (init_gcc): Don't set G.allocated_last_gc here. (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to perform collection. * ggc-simple.c: Similarly. * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59034 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index 1427819d2b8..f65469081fd 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -190,6 +190,26 @@ DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
"Stop forward growth if the probability of best edge is less than \
this threshold (in percents). Used when profile feedback is not available",
50)
+
+#ifdef ENABLE_GC_ALWAYS_COLLECT
+# define GGC_MIN_EXPAND_DEFAULT 0
+#else
+# define GGC_MIN_EXPAND_DEFAULT 30
+#endif
+
+DEFPARAM(GGC_MIN_EXPAND,
+ "ggc-min-expand",
+ "Minimum heap expansion to trigger garbage collection, as \
+a percentage of the total size of the heap.",
+ GGC_MIN_EXPAND_DEFAULT)
+
+#undef GGC_MIN_EXPAND_DEFAULT
+
+DEFPARAM(GGC_MIN_HEAPSIZE,
+ "ggc-min-heapsize",
+ "Minimum heap size before we start collecting garbage, in kilobytes.",
+ 4096)
+
/*
Local variables:
mode:c