From 0172a8f1f4d500b89ae32fb9155f51bb169f036f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 11 Sep 1999 23:25:44 -0700 Subject: [PATCH] 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 --- gcc/ggc-simple.c | 6 ++++-- 1 file 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 -- 2.30.2