diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-25 15:14:21 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-25 15:14:21 +0000 |
commit | c2bac239e82106c81d06da194983c84219ae6626 (patch) | |
tree | b186b2f5396a3eb5c42efb63184296b63f2b29e3 /gcc/ggc-zone.c | |
parent | 866710926efc85c167b655d160eef2c6b0b1564c (diff) | |
download | gcc-c2bac239e82106c81d06da194983c84219ae6626.tar.gz |
2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
PR other/22337
* ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
(ggc_print_statistics): Initialize variable before use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-zone.c')
-rw-r--r-- | gcc/ggc-zone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ggc-zone.c b/gcc/ggc-zone.c index 40d751907f7..1d6edfb707e 100644 --- a/gcc/ggc-zone.c +++ b/gcc/ggc-zone.c @@ -1229,7 +1229,7 @@ ggc_alloc_zone_stat (size_t orig_size, struct alloc_zone *zone information is used in deciding when to collect. */ zone->allocated += size; - timevar_ggc_mem_total += (size + CHUNK_OVERHEAD); + timevar_ggc_mem_total += size; #ifdef GATHER_STATISTICS ggc_record_overhead (orig_size, size - orig_size, result PASS_MEM_STAT); @@ -2049,7 +2049,7 @@ ggc_print_statistics (void) pte_overhead += PAGE_L2_SIZE * sizeof (struct page_entry *); #else { - struct page_table_chain *table; + page_table table = G.lookup; pte_overhead = 0; while (table) { |