* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
This commit is contained in:
parent
5ab33f2b8a
commit
3687c2efb7
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
2011-05-30 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
|
||||
|
||||
* eval.c (Qdebug): Now static.
|
||||
* lisp.h (Qdebug): Remove decl. This reverts a part of the
|
||||
2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of
|
||||
|
|
|
@ -993,13 +993,11 @@ lisp_align_malloc (size_t nbytes, enum mem_type type)
|
|||
free_ablock = free_ablock->x.next_free;
|
||||
|
||||
#if GC_MARK_STACK && !defined GC_MALLOC_CHECK
|
||||
if (val && type != MEM_TYPE_NON_LISP)
|
||||
if (type != MEM_TYPE_NON_LISP)
|
||||
mem_insert (val, (char *) val + nbytes, type);
|
||||
#endif
|
||||
|
||||
MALLOC_UNBLOCK_INPUT;
|
||||
if (!val && nbytes)
|
||||
memory_full ();
|
||||
|
||||
eassert (0 == ((uintptr_t) val) % BLOCK_ALIGN);
|
||||
return val;
|
||||
|
|
Loading…
Add table
Reference in a new issue