aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-05-30 09:09:29 -0700
committerPaul Eggert2011-05-30 09:09:29 -0700
commit3687c2efb7e7a5b6afbf87588a248431ccc8dd65 (patch)
treecf4fa238fafdd7a4087ac6f2febe1ccf2c63dd16 /src
parent5ab33f2b8a7184d062c33bc43b1bfd3fe990e3b5 (diff)
downloademacs-3687c2efb7e7a5b6afbf87588a248431ccc8dd65.tar.gz
emacs-3687c2efb7e7a5b6afbf87588a248431ccc8dd65.zip
* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/alloc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b53d9b49a42..b7c1057ae7e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-05-30 Paul Eggert <eggert@cs.ucla.edu> 12011-05-30 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
4
3 * eval.c (Qdebug): Now static. 5 * eval.c (Qdebug): Now static.
4 * lisp.h (Qdebug): Remove decl. This reverts a part of the 6 * lisp.h (Qdebug): Remove decl. This reverts a part of the
5 2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of 7 2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of
diff --git a/src/alloc.c b/src/alloc.c
index 3f7bed571c7..8215cc53cd3 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -993,13 +993,11 @@ lisp_align_malloc (size_t nbytes, enum mem_type type)
993 free_ablock = free_ablock->x.next_free; 993 free_ablock = free_ablock->x.next_free;
994 994
995#if GC_MARK_STACK && !defined GC_MALLOC_CHECK 995#if GC_MARK_STACK && !defined GC_MALLOC_CHECK
996 if (val && type != MEM_TYPE_NON_LISP) 996 if (type != MEM_TYPE_NON_LISP)
997 mem_insert (val, (char *) val + nbytes, type); 997 mem_insert (val, (char *) val + nbytes, type);
998#endif 998#endif
999 999
1000 MALLOC_UNBLOCK_INPUT; 1000 MALLOC_UNBLOCK_INPUT;
1001 if (!val && nbytes)
1002 memory_full ();
1003 1001
1004 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN); 1002 eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN);
1005 return val; 1003 return val;