diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-31 05:05:19 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-31 05:05:19 +0000 |
commit | f806fb683d205a13e330b5f619dba4ed76096bcb (patch) | |
tree | def8b0b07e0d191900ab61290856c303534b5e40 /gcc/ggc-page.c | |
parent | d90db7dccc4da4f6cede15e7a4f6e048e8f7889a (diff) | |
download | ppe42-gcc-f806fb683d205a13e330b5f619dba4ed76096bcb.tar.gz ppe42-gcc-f806fb683d205a13e330b5f619dba4ed76096bcb.zip |
* ggc-page.c (size_lookup): Increase minimum allocation size
to eight bytes.
(ggc_print_statistics): Report size of each bin in bytes, not
as its order; there is no longer a direct relationship.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 559183e2d34..df49b5709e3 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -826,11 +826,11 @@ release_pages () } /* This table provides a fast way to determine ceil(log_2(size)) for - allocation requests. The minimum allocation size is four bytes. */ + allocation requests. The minimum allocation size is eight bytes. */ static unsigned char size_lookup[257] = -{ - 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, +{ + 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, @@ -1446,7 +1446,7 @@ ggc_print_statistics () /* Collect some information about the various sizes of allocation. */ fprintf (stderr, "\n%-5s %10s %10s %10s\n", - "Log", "Allocated", "Used", "Overhead"); + "Size", "Allocated", "Used", "Overhead"); for (i = 0; i < NUM_ORDERS; ++i) { page_entry *p; @@ -1472,7 +1472,7 @@ ggc_print_statistics () overhead += (sizeof (page_entry) - sizeof (long) + BITMAP_SIZE (OBJECTS_PER_PAGE (i) + 1)); } - fprintf (stderr, "%-5d %10ld%c %10ld%c %10ld%c\n", i, + fprintf (stderr, "%-5d %10ld%c %10ld%c %10ld%c\n", OBJECT_SIZE (i), SCALE (allocated), LABEL (allocated), SCALE (in_use), LABEL (in_use), SCALE (overhead), LABEL (overhead)); |