ggc-page.c (struct page_entry): Remove save_num_free_objects.
authorMark Mitchell <mark@codesourcery.com>
Mon, 1 Nov 1999 06:57:01 +0000 (06:57 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 1 Nov 1999 06:57:01 +0000 (06:57 +0000)
commit4934cc537b68343ba318335725b26567a767ecca
tree1baa221a228a41e439858be1e5c13d28376c65b4
parent3e038608acd6e57ae2a13088b5e1f25d2b23d926
ggc-page.c (struct page_entry): Remove save_num_free_objects.

* ggc-page.c (struct page_entry): Remove save_num_free_objects.
(DIV_ROUND_UP): Robustify.
(ggc_recalculate_in_use_p): New function.
(release_pages): Don't inline it.
(ggc_alloc_obj): Don't refuse to allocate objects on pages for
outer contexts.
(ggc_pop_context): Use ggc_recalculate_in_use_p.
(clear_marks): Always save in_use_p.
(sweep_pages): Use ggc_recalculate_in_use_p.
(ggc_page_print_statistics): Avoid signed/unsigned comparisons.
Release pages before counting statistics.

From-SVN: r30314
gcc/ChangeLog
gcc/ggc-page.c