emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104435: * alloc.c (lisp_align_malloc


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104435: * alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
Date: Mon, 30 May 2011 09:09:29 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104435
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Mon 2011-05-30 09:09:29 -0700
message:
  * alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
modified:
  src/ChangeLog
  src/alloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-05-30 05:39:59 +0000
+++ b/src/ChangeLog     2011-05-30 16:09:29 +0000
@@ -1,5 +1,7 @@
 2011-05-30  Paul Eggert  <address@hidden>
 
+       * 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-26 change (bzr 104015) that inadvertently undid part of

=== modified file 'src/alloc.c'
--- a/src/alloc.c       2011-05-23 00:31:35 +0000
+++ b/src/alloc.c       2011-05-30 16:09:29 +0000
@@ -993,13 +993,11 @@
   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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]