Mercurial > hg > xemacs-beta
changeset 2932:6c70efc2b5b1
[xemacs-hg @ 2005-09-14 14:24:28 by crestani]
Initialize lookup table.
author | crestani |
---|---|
date | Wed, 14 Sep 2005 14:24:30 +0000 |
parents | 0d5322818981 |
children | a3ed09153e13 |
files | src/ChangeLog src/mc-alloc.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Wed Sep 14 05:31:02 2005 +0000 +++ b/src/ChangeLog Wed Sep 14 14:24:30 2005 +0000 @@ -1,3 +1,9 @@ +2005-09-14 Marcus Crestani <crestani@xemacs.org> + + * mc-alloc.c (set_lookup_table): Adjust parameter to other memset + calls. + * mc-alloc.c (init_mc_allocator): Zero global allocator structure. + 2005-09-14 Stephen J. Turnbull <stephen@xemacs.org> * XEmacs 21.5.22 "cucumber" is released.
--- a/src/mc-alloc.c Wed Sep 14 05:31:02 2005 +0000 +++ b/src/mc-alloc.c Wed Sep 14 14:24:30 2005 +0000 @@ -521,7 +521,7 @@ MC_MALLOCED_BYTES += malloced_storage_size (0, sizeof (level_2_lookup_tree), 0); #endif - memset (l2, 0, sizeof (level_2_lookup_tree)); + memset (l2, '\0', sizeof (level_2_lookup_tree)); #ifdef USE_HASH_TABLE LEVEL2_HASH_LINK (l2) = PTR_LOOKUP_TABLE (l1_index); #endif @@ -1690,6 +1690,8 @@ { int i; + memset (&mc_allocator_globals, '\0', sizeof (mc_allocator_globals_type)); + for (i = 0; i < N_USED_PAGE_LISTS; i++) { page_list_header *plh = USED_HEAP_PAGES (i);