Mercurial > hg > xemacs-beta
changeset 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 | 7f34da25d871 |
children | 6c7605dfcf07 |
files | src/ChangeLog src/alloc.c |
diffstat | 2 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sun Jun 18 21:51:09 2006 +0000 +++ b/src/ChangeLog Mon Jun 19 18:10:19 2006 +0000 @@ -1,3 +1,9 @@ +2006-06-16 Jerry James <james@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@parhasard.net> * event-xlike-inc.c:
--- 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) {