OSDN Git Service

2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jul 2005 15:14:21 +0000 (15:14 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jul 2005 15:14:21 +0000 (15:14 +0000)
        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

gcc/ChangeLog
gcc/ggc-zone.c

index 530a11d..413aa48 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2005-07-25  Richard Guenther  <rguenther@suse.de>
 
        * tree-dfa.c (mark_new_vars_to_rename): Protect against
 2005-07-25  Richard Guenther  <rguenther@suse.de>
 
        * tree-dfa.c (mark_new_vars_to_rename): Protect against
index 40d7519..1d6edfb 100644 (file)
@@ -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;
   
      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);
 
 #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
   {
       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)
       {
     pte_overhead = 0;
     while (table)
       {