aboutsummaryrefslogtreecommitdiffstats
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-04-27 18:33:39 +0900
committerYAMAMOTO Mitsuharu2019-04-27 18:33:39 +0900
commit886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28 (patch)
treeb5770d9fc10a704ad8aeb3474c6940121252c770 /src/ralloc.c
parent015a6e1df2772bd43680df5cbeaffccf98a881da (diff)
parent8dc00b2f1e6523c634df3e24379afbe712a32b27 (diff)
downloademacs-886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28.tar.gz
emacs-886bedb36c7b959b7e6fc8ce8e0c04e144b0ae28.zip
Merge branch 'master' into harfbuzz
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 046d5507342..66ea2ec4119 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -1,5 +1,5 @@
1/* Block-relocating memory allocator. 1/* Block-relocating memory allocator.
2 Copyright (C) 1993, 1995, 2000-2018 Free Software Foundation, Inc. 2 Copyright (C) 1993, 1995, 2000-2019 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -26,11 +26,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
26 26
27#include <stddef.h> 27#include <stddef.h>
28 28
29#ifdef emacs 29#include "lisp.h"
30# include "lisp.h" 30#include "blockinput.h"
31# include "blockinput.h" 31#include <unistd.h>
32# include <unistd.h>
33#endif
34 32
35#include "getpagesize.h" 33#include "getpagesize.h"
36 34
@@ -924,9 +922,7 @@ r_alloc_free (void **ptr)
924 free_bloc (dead_bloc); 922 free_bloc (dead_bloc);
925 *ptr = 0; 923 *ptr = 0;
926 924
927#ifdef emacs
928 refill_memory_reserve (); 925 refill_memory_reserve ();
929#endif
930} 926}
931 927
932/* Given a pointer at address PTR to relocatable data, resize it to SIZE. 928/* Given a pointer at address PTR to relocatable data, resize it to SIZE.
@@ -1000,7 +996,7 @@ r_re_alloc (void **ptr, size_t size)
1000} 996}
1001 997
1002 998
1003#if defined (emacs) && defined (DOUG_LEA_MALLOC) 999#ifdef DOUG_LEA_MALLOC
1004 1000
1005/* Reinitialize the morecore hook variables after restarting a dumped 1001/* Reinitialize the morecore hook variables after restarting a dumped
1006 Emacs. This is needed when using Doug Lea's malloc from GNU libc. */ 1002 Emacs. This is needed when using Doug Lea's malloc from GNU libc. */