summaryrefslogtreecommitdiff
path: root/gcc/ggc-simple.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>1999-09-11 23:25:44 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-09-11 23:25:44 -0700
commit0172a8f1f4d500b89ae32fb9155f51bb169f036f (patch)
tree6e7c87f71b58e920d14e06b91db4f9e9bb92fac0 /gcc/ggc-simple.c
parentf4e16489df24f0aefb1e054e5eaa951fe5766048 (diff)
downloadgcc-0172a8f1f4d500b89ae32fb9155f51bb169f036f.tar.gz
ggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context.
* ggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context. From-SVN: r29353
Diffstat (limited to 'gcc/ggc-simple.c')
-rw-r--r--gcc/ggc-simple.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c
index ba4139017d1..12f9f8610d3 100644
--- a/gcc/ggc-simple.c
+++ b/gcc/ggc-simple.c
@@ -201,6 +201,8 @@ ggc_pop_context PROTO ((void))
gs->next->strings = gs->strings;
}
+ gs->next->bytes_alloced_since_gc += gs->bytes_alloced_since_gc;
+
ggc_chain = gs->next;
free (gs);
}
@@ -489,9 +491,9 @@ ggc_collect ()
struct ggc_any *a, **ap;
int time, n_rtxs, n_trees, n_vecs, n_strings, n_anys;
-#ifndef ENABLE_CHECKING
+#if !defined(ENABLE_CHECKING)
/* See if it's even worth our while. */
- if (ggc_chain->bytes_alloced_since_gc < 64*1024)
+ if (ggc_chain->bytes_alloced_since_gc < 4*1024*1024)
return;
#endif