Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
dec41418
Commit
dec41418
authored
Jul 12, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(r_alloc_reinit): New function.
parent
3d976a9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/ralloc.c
src/ralloc.c
+18
-0
No files found.
src/ralloc.c
View file @
dec41418
...
...
@@ -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. */
void
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
;
}
}
#endif
#ifdef DEBUG
#include <assert.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment