aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 536286ff166..12849fd90a6 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -214,9 +214,9 @@ display_malloc_warning ()
214} 214}
215 215
216#ifdef DOUG_LEA_MALLOC 216#ifdef DOUG_LEA_MALLOC
217 #define BYTES_USED (mallinfo ().arena) 217# define BYTES_USED (mallinfo ().arena)
218#else 218#else
219 #define BYTES_USED _bytes_used 219# define BYTES_USED _bytes_used
220#endif 220#endif
221 221
222/* Called if malloc returns zero */ 222/* Called if malloc returns zero */
@@ -374,11 +374,11 @@ emacs_blocked_malloc (size)
374 374
375 BLOCK_INPUT; 375 BLOCK_INPUT;
376 __malloc_hook = old_malloc_hook; 376 __malloc_hook = old_malloc_hook;
377 #ifdef DOUG_LEA_MALLOC 377#ifdef DOUG_LEA_MALLOC
378 mallopt (M_TOP_PAD, malloc_hysteresis * 4096); 378 mallopt (M_TOP_PAD, malloc_hysteresis * 4096);
379 #else 379#else
380 __malloc_extra_blocks = malloc_hysteresis; 380 __malloc_extra_blocks = malloc_hysteresis;
381 #endif 381#endif
382 value = (void *) malloc (size); 382 value = (void *) malloc (size);
383 __malloc_hook = emacs_blocked_malloc; 383 __malloc_hook = emacs_blocked_malloc;
384 UNBLOCK_INPUT; 384 UNBLOCK_INPUT;