Mercurial > emacs
comparison src/ralloc.c @ 18757:9d6149f4c762
(r_alloc_reinit): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 12 Jul 1997 07:04:43 +0000 |
parents | ac6367122ee2 |
children | cc8daec6d363 |
comparison
equal
deleted
inserted
replaced
18756:751f531e5a20 | 18757:9d6149f4c762 |
---|---|
1148 rest of that page to the address space. */ | 1148 rest of that page to the address space. */ |
1149 bzero (first_heap->start, first_heap->end - first_heap->start); | 1149 bzero (first_heap->start, first_heap->end - first_heap->start); |
1150 virtual_break_value = break_value = first_heap->bloc_start = first_heap->end; | 1150 virtual_break_value = break_value = first_heap->bloc_start = first_heap->end; |
1151 use_relocatable_buffers = 1; | 1151 use_relocatable_buffers = 1; |
1152 } | 1152 } |
1153 | |
1154 #if defined (emacs) && defined (DOUG_LEA_MALLOC) | |
1155 | |
1156 /* Reinitialize the morecore hook variables after restarting a dumped | |
1157 Emacs. This is needed when using Doug Lea's malloc from GNU libc. */ | |
1158 void | |
1159 r_alloc_reinit () | |
1160 { | |
1161 /* Only do this if the hook has been reset, so that we don't get an | |
1162 infinite loop, in case Emacs was linked statically. */ | |
1163 if (__morecore != r_alloc_sbrk) | |
1164 { | |
1165 real_morecore = __morecore; | |
1166 __morecore = r_alloc_sbrk; | |
1167 } | |
1168 } | |
1169 #endif | |
1170 | |
1153 #ifdef DEBUG | 1171 #ifdef DEBUG |
1154 #include <assert.h> | 1172 #include <assert.h> |
1155 | 1173 |
1156 void | 1174 void |
1157 r_alloc_check () | 1175 r_alloc_check () |