ggc-simple.c (ggc_pop_context): Fold outstanding bytes into surrounding context.
authorRichard Henderson <rth@gcc.gnu.org>
Sun, 12 Sep 1999 06:25:44 +0000 (23:25 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 12 Sep 1999 06:25:44 +0000 (23:25 -0700)
        * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
        surrounding context.

From-SVN: r29353

gcc/ggc-simple.c

index ba4139017d166462e9e34395a22f6d3373d67029..12f9f8610d32bcb914f763b08a8f4e463c2c81c2 100644 (file)
@@ -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