From 950b639c393c87c80d8dee0de288df3cd9a7e99a Mon Sep 17 00:00:00 2001 From: geoffk Date: Fri, 15 Nov 2002 21:27:48 +0000 Subject: [PATCH] * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem. * doc/invoke.texi: Correct description of what needs to be done to force collection at every ggc_collect call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59143 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 11 +++++++---- gcc/params.def | 11 +++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 104a280..92562b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-11-15 Geoffrey Keating + + * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem. + * doc/invoke.texi: Correct description of what needs to be done to + force collection at every ggc_collect call. + 2002-11-15 Ulrich Weigand * config/s390/s390.c (optimization_options): Set diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index dc8a436..1df52de 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -4241,9 +4241,10 @@ collector's heap should be allowed to expand between collections. Tuning this may improve compilation speed; it has no effect on code generation. -The default is 30%. Setting this parameter to zero causes a full -collection to occur at every opportunity. This is extremely slow, but -can be useful for debugging. +The default is 30%. Setting this parameter and +@option{ggc-min-heapsize} to zero causes a full collection to occur at +every opportunity. This is extremely slow, but can be useful for +debugging. @item ggc-min-heapsize @@ -4254,7 +4255,9 @@ tuning this may improve compilation speed, and has no effect on code generation. The default is 4096 (four megabytes). Setting this parameter very large -effectively disables garbage collection. +effectively disables garbage collection. Setting this parameter and +@option{ggc-min-expand} to zero causes a full collection to occur at +every opportunity. @end table @end table diff --git a/gcc/params.def b/gcc/params.def index f654690..d961189 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -1,5 +1,5 @@ /* params.def - Run-time parameters. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001, 2002 Free Software Foundation, Inc. Written by Mark Mitchell . This file is part of GCC. @@ -193,8 +193,10 @@ this threshold (in percents). Used when profile feedback is not available", #ifdef ENABLE_GC_ALWAYS_COLLECT # define GGC_MIN_EXPAND_DEFAULT 0 +# define GGC_MIN_HEAPSIZE_DEFAULT 0 #else # define GGC_MIN_EXPAND_DEFAULT 30 +# define GGC_MIN_HEAPSIZE_DEFAULT 4096 #endif DEFPARAM(GGC_MIN_EXPAND, @@ -203,12 +205,13 @@ DEFPARAM(GGC_MIN_EXPAND, 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) + GGC_MIN_HEAPSIZE_DEFAULT) + +#undef GGC_MIN_EXPAND_DEFAULT +#undef GGC_MIN_HEAPSIZE_DEFAULT /* Local variables: -- 2.7.4