diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-02-23 16:56:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-02-23 16:56:04 +0000 |
commit | 16226f1e5b78ebd6e18b054489b67b58fe79355d (patch) | |
tree | cfe1a9e59e70d3dbd2ef4ee6e573924fe4e282b0 /gcc/doc/invoke.texi | |
parent | 53be1a8d37abfbfc82c2b9508053d1d00b85ddf8 (diff) | |
download | gcc-16226f1e5b78ebd6e18b054489b67b58fe79355d.zip gcc-16226f1e5b78ebd6e18b054489b67b58fe79355d.tar.gz gcc-16226f1e5b78ebd6e18b054489b67b58fe79355d.tar.bz2 |
invoke.texi (ggc-min-expand, [...]): Document new default behavior.
* doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
new default behavior.
* ggc-common.c: Include sys/resource.h.
(ggc_rlimit_bound): New function.
(ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
defaults to account for rlimits.
From-SVN: r63323
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 2ae2ac3..ff9a9a7 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -4474,8 +4474,10 @@ Tuning this may improve compilation speed; it has no effect on code generation. The default is 30% + 70% * (RAM/1GB) with an upper bound of 100% when -RAM >= 1GB. If GCC is not able to calculate RAM on a particular -platform, the lower bound of 30% is used. Setting this parameter and +RAM >= 1GB. If @code{getrlimit} is available, the notion of "RAM" is +the smallest of actual RAM, RLIMIT_RSS, RLIMIT_DATA and RLIMIT_AS. If +GCC is not able to calculate RAM on a particular platform, the lower +bound of 30% is used. 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. @@ -4489,7 +4491,9 @@ tuning this may improve compilation speed, and has no effect on code generation. The default is RAM/8, with a lower bound of 4096 (four megabytes) and an -upper bound of 131072 (128 megabytes). If GCC is not able to calculate +upper bound of 131072 (128 megabytes). If @code{getrlimit} is +available, the notion of "RAM" is the smallest of actual RAM, +RLIMIT_RSS, RLIMIT_DATA and RLIMIT_AS. If GCC is not able to calculate RAM on a particular platform, the lower bound is used. Setting this parameter very large effectively disables garbage collection. Setting this parameter and @option{ggc-min-expand} to zero causes a full |