aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c
index ac154b587e6..9c81ae2eedf 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -80,7 +80,7 @@ static bool valgrind_p;
80 marked objects. */ 80 marked objects. */
81 81
82#if (defined SYSTEM_MALLOC || defined DOUG_LEA_MALLOC \ 82#if (defined SYSTEM_MALLOC || defined DOUG_LEA_MALLOC \
83 || defined GC_CHECK_MARKED_OBJECTS) 83 || defined HYBRID_MALLOC || defined GC_CHECK_MARKED_OBJECTS)
84#undef GC_MALLOC_CHECK 84#undef GC_MALLOC_CHECK
85#endif 85#endif
86 86
@@ -285,7 +285,7 @@ static void gc_sweep (void);
285static Lisp_Object make_pure_vector (ptrdiff_t); 285static Lisp_Object make_pure_vector (ptrdiff_t);
286static void mark_buffer (struct buffer *); 286static void mark_buffer (struct buffer *);
287 287
288#if !defined REL_ALLOC || defined SYSTEM_MALLOC 288#if !defined REL_ALLOC || defined SYSTEM_MALLOC || defined HYBRID_MALLOC
289static void refill_memory_reserve (void); 289static void refill_memory_reserve (void);
290#endif 290#endif
291static void compact_small_strings (void); 291static void compact_small_strings (void);
@@ -1014,10 +1014,17 @@ lisp_free (void *block)
1014 clang 3.3 anyway. */ 1014 clang 3.3 anyway. */
1015 1015
1016#if ! ADDRESS_SANITIZER 1016#if ! ADDRESS_SANITIZER
1017# if !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC 1017# if !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC
1018# define USE_ALIGNED_ALLOC 1 1018# define USE_ALIGNED_ALLOC 1
1019/* Defined in gmalloc.c. */ 1019/* Defined in gmalloc.c. */
1020void *aligned_alloc (size_t, size_t); 1020void *aligned_alloc (size_t, size_t);
1021# elif defined HYBRID_MALLOC
1022# if defined ALIGNED_ALLOC || defined HAVE_POSIX_MEMALIGN
1023# define USE_ALIGNED_ALLOC 1
1024# define aligned_alloc hybrid_aligned_alloc
1025/* Defined in gmalloc.c. */
1026void *aligned_alloc (size_t, size_t);
1027# endif
1021# elif defined HAVE_ALIGNED_ALLOC 1028# elif defined HAVE_ALIGNED_ALLOC
1022# define USE_ALIGNED_ALLOC 1 1029# define USE_ALIGNED_ALLOC 1
1023# elif defined HAVE_POSIX_MEMALIGN 1030# elif defined HAVE_POSIX_MEMALIGN
@@ -3829,7 +3836,7 @@ memory_full (size_t nbytes)
3829void 3836void
3830refill_memory_reserve (void) 3837refill_memory_reserve (void)
3831{ 3838{
3832#ifndef SYSTEM_MALLOC 3839#if !defined SYSTEM_MALLOC && !defined HYBRID_MALLOC
3833 if (spare_memory[0] == 0) 3840 if (spare_memory[0] == 0)
3834 spare_memory[0] = malloc (SPARE_MEMORY); 3841 spare_memory[0] = malloc (SPARE_MEMORY);
3835 if (spare_memory[1] == 0) 3842 if (spare_memory[1] == 0)