Commit dec41418 authored by Richard M. Stallman's avatar Richard M. Stallman

(r_alloc_reinit): New function.

parent 3d976a9a
......@@ -1150,6 +1150,24 @@ r_alloc_init ()
virtual_break_value = break_value = first_heap->bloc_start = first_heap->end;
use_relocatable_buffers = 1;
#if defined (emacs) && defined (DOUG_LEA_MALLOC)
/* Reinitialize the morecore hook variables after restarting a dumped
Emacs. This is needed when using Doug Lea's malloc from GNU libc. */
r_alloc_reinit ()
/* Only do this if the hook has been reset, so that we don't get an
infinite loop, in case Emacs was linked statically. */
if (__morecore != r_alloc_sbrk)
real_morecore = __morecore;
__morecore = r_alloc_sbrk;
#ifdef DEBUG
#include <assert.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment