User: james
Date: 06/06/19 20:10:23
Modified: xemacs/src ChangeLog alloc.c
Log:
Don't make the stats arrays bigger than they need to be.
<m3mzcdqbk5.fsf(a)jerrypc.cs.usu.edu>
Revision Changes Path
1.975 +6 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.974
retrieving revision 1.975
diff -u -p -r1.974 -r1.975
--- ChangeLog 2006/06/18 18:34:19 1.974
+++ ChangeLog 2006/06/19 18:10:17 1.975
@@ -1,3 +1,9 @@
+2006-06-16 Jerry James <james(a)xemacs.org>
+
+ * alloc.c: Don't add MODULE_DEFINABLE_TYPE_COUNT to
+ countof (lrecord_implementations_table); the latter is already big
+ enough.
+
2006-06-18 Aidan Kehoe <kehoea(a)parhasard.net>
* event-xlike-inc.c:
1.127 +4 -8 XEmacs/xemacs/src/alloc.c
Index: alloc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/alloc.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -p -r1.126 -r1.127
--- alloc.c 2006/04/23 20:12:31 1.126
+++ alloc.c 2006/06/19 18:10:19 1.127
@@ -508,8 +508,7 @@ static struct
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 @@ lrecord_stats_heap_size (void)
{
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 @@ static struct
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 @@ object_memory_usage_stats (int set_total
#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)
{