diff options
| author | Pip Cet | 2024-08-20 18:40:29 +0000 |
|---|---|---|
| committer | Stefan Kangas | 2024-12-12 22:48:11 +0100 |
| commit | b2bc337a5f8d84978029873ce8e51b8d3d53121a (patch) | |
| tree | f80a5ea808dbdd8997f6f0e2860dc16c42e84c61 /src/ralloc.c | |
| parent | 15e2b14f03796467fab8e8086d293a5813afaa5b (diff) | |
| download | emacs-b2bc337a5f8d84978029873ce8e51b8d3d53121a.tar.gz emacs-b2bc337a5f8d84978029873ce8e51b8d3d53121a.zip | |
Unexec removal: Remove HYBRID_MALLOC support
* src/gmalloc.c (gdefault_morecore): Remove HYBRID_MALLOC code.
(allocated_via_gmalloc, hybrid_malloc, hybrid_calloc, hybrid_free_1)
(hybrid_free, hybrid_aligned_alloc, hybrid_realloc): Remove functions.
* msdos/sed1v2.inp:
* msdos/sedlibmk.inp:
* src/alloc.c (GC_MALLOC_CHECK, USE_ALIGNED_ALLOC)
(refill_memory_reserve, aligned_alloc):
* src/emacs.c (main):
* src/lastfile.c (my_edata):
* src/lisp.h:
* src/ralloc.c:
* src/sysdep.c (get_current_dir_name_or_unreachable):
* src/xdisp.c (decode_mode_spec): Remove HYBRID_MALLOC conditions.
* configure.ac (hybrid_malloc, HYBRID_MALLOC): Remove variables and
dependent code.
* src/conf_post.h (hybrid_malloc, hybrid_calloc, hybrid_free)
(hybrid_aligned_alloc, hybrid_realloc): Remove conditional prototypes.
* src/Makefile.in (HYBRID_MALLOC): Remove variable.
(base_obj): Remove sheap.o
(LIBEGNU_ARCHIVE):
* lib/Makefile.in (libgnu_a_OBJECTS): Remove libegnu.a support.
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 5724ae65d33..f7688561662 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -1162,7 +1162,7 @@ r_alloc_init (void) | |||
| 1162 | r_alloc_initialized = 1; | 1162 | r_alloc_initialized = 1; |
| 1163 | 1163 | ||
| 1164 | page_size = PAGE; | 1164 | page_size = PAGE; |
| 1165 | #if !defined SYSTEM_MALLOC && !defined HYBRID_MALLOC | 1165 | #if !defined SYSTEM_MALLOC |
| 1166 | real_morecore = __morecore; | 1166 | real_morecore = __morecore; |
| 1167 | __morecore = r_alloc_sbrk; | 1167 | __morecore = r_alloc_sbrk; |
| 1168 | 1168 | ||
| @@ -1181,7 +1181,7 @@ r_alloc_init (void) | |||
| 1181 | mallopt (M_TOP_PAD, 64 * 4096); | 1181 | mallopt (M_TOP_PAD, 64 * 4096); |
| 1182 | unblock_input (); | 1182 | unblock_input (); |
| 1183 | #else | 1183 | #else |
| 1184 | #if !defined SYSTEM_MALLOC && !defined HYBRID_MALLOC | 1184 | #if !defined SYSTEM_MALLOC |
| 1185 | /* Give GNU malloc's morecore some hysteresis so that we move all | 1185 | /* Give GNU malloc's morecore some hysteresis so that we move all |
| 1186 | the relocatable blocks much less often. The number used to be | 1186 | the relocatable blocks much less often. The number used to be |
| 1187 | 64, but alloc.c would override that with 32 in code that was | 1187 | 64, but alloc.c would override that with 32 in code that was |
| @@ -1194,7 +1194,7 @@ r_alloc_init (void) | |||
| 1194 | #endif | 1194 | #endif |
| 1195 | #endif | 1195 | #endif |
| 1196 | 1196 | ||
| 1197 | #if !defined SYSTEM_MALLOC && !defined HYBRID_MALLOC | 1197 | #if !defined SYSTEM_MALLOC |
| 1198 | first_heap->end = (void *) PAGE_ROUNDUP (first_heap->start); | 1198 | first_heap->end = (void *) PAGE_ROUNDUP (first_heap->start); |
| 1199 | 1199 | ||
| 1200 | /* The extra call to real_morecore guarantees that the end of the | 1200 | /* The extra call to real_morecore guarantees that the end of the |