diff src/alloc.c @ 3461:fd2936bbfc5f

[xemacs-hg @ 2006-06-19 18:10:17 by james] Don't make the stats arrays bigger than they need to be. <m3mzcdqbk5.fsf@jerrypc.cs.usu.edu>
author james
date Mon, 19 Jun 2006 18:10:19 +0000
parents 721daee0fcd8
children 8b1d806afbb3
line wrap: on
line diff
--- a/src/alloc.c	Sun Jun 18 21:51:09 2006 +0000
+++ b/src/alloc.c	Mon Jun 19 18:10:19 2006 +0000
@@ -508,8 +508,7 @@
   int instances_in_use;
   int bytes_in_use;
   int bytes_in_use_including_overhead;
-} lrecord_stats [countof (lrecord_implementations_table)
-		 + MODULE_DEFINABLE_TYPE_COUNT];
+} lrecord_stats [countof (lrecord_implementations_table)];
 
 void
 init_lrecord_stats ()
@@ -554,8 +553,7 @@
 {
   int i;
   int size = 0;
-  for (i = 0; i < (countof (lrecord_implementations_table)
-		   + MODULE_DEFINABLE_TYPE_COUNT); i++)
+  for (i = 0; i < countof (lrecord_implementations_table); i++)
     size += lrecord_stats[i].bytes_in_use;
   return size;
 }
@@ -3433,8 +3431,7 @@
   int instances_freed;
   int bytes_freed;
   int instances_on_free_list;
-} lcrecord_stats [countof (lrecord_implementations_table)
-		  + MODULE_DEFINABLE_TYPE_COUNT];
+} lcrecord_stats [countof (lrecord_implementations_table)];
 
 static void
 tick_lcrecord_stats (const struct lrecord_header *h, int free_p)
@@ -4428,8 +4425,7 @@
 
 #ifdef NEW_GC
   
-  for (i = 0; i < (countof (lrecord_implementations_table)
-		   + MODULE_DEFINABLE_TYPE_COUNT); i++)
+  for (i = 0; i < countof (lrecord_implementations_table); i++)
     {
       if (lrecord_stats[i].instances_in_use != 0)
         {