From 16226f1e5b78ebd6e18b054489b67b58fe79355d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 23 Feb 2003 16:56:04 +0000 Subject: 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 --- gcc/doc/invoke.texi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/doc/invoke.texi') 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 -- cgit v1.1