aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-05-30 22:15:34 -0700
committerPaul Eggert2011-05-30 22:15:34 -0700
commit333d54dade1e7005d5a97612907158fe5ec3d310 (patch)
treea5b18c9c6a68d71fddae98aba0d81079068a8c46 /src/alloc.c
parent90856fe0b82ba19d1c3d73a4ba48007380201e66 (diff)
parent620c53a664e41788f6d4f8e3f687e1a0d448b857 (diff)
downloademacs-333d54dade1e7005d5a97612907158fe5ec3d310.tar.gz
emacs-333d54dade1e7005d5a97612907158fe5ec3d310.zip
Merge from trunk.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f62ae125408..e627af6c071 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -989,13 +989,11 @@ lisp_align_malloc (size_t nbytes, enum mem_type type)
989 free_ablock = free_ablock->x.next_free; 989 free_ablock = free_ablock->x.next_free;
990 990
991#if GC_MARK_STACK && !defined GC_MALLOC_CHECK 991#if GC_MARK_STACK && !defined GC_MALLOC_CHECK
992 if (val && type != MEM_TYPE_NON_LISP) 992 if (type != MEM_TYPE_NON_LISP)
993 mem_insert (val, (char *) val + nbytes, type); 993 mem_insert (val, (char *) val + nbytes, type);
994#endif 994#endif
995 995
996 MALLOC_UNBLOCK_INPUT; 996 MALLOC_UNBLOCK_INPUT;
997 if (!val && nbytes)
998 memory_full ();
999 997
1000 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN); 998 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN);
1001 return val; 999 return val;