emacs-diffs
[Top][All Lists]
Advanced

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

master ced7852: Avoid assertion violation at startup in pdumped Emacs


From: Eli Zaretskii
Subject: master ced7852: Avoid assertion violation at startup in pdumped Emacs
Date: Mon, 30 Mar 2020 09:59:01 -0400 (EDT)

branch: master
commit ced7852046469b8248718d5c95c64c0cd4ddf417
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid assertion violation at startup in pdumped Emacs
    
    * src/buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Remove the
    assertion that ensured all buffers in pdumped Emacs have non-NULL
    pointer to buffer text.  That was false when Emacs was pdumped
    with killed buffer(s) in the all_buffers linked list.  See
    https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00800.html
    for more details.
---
 src/buffer.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/buffer.c b/src/buffer.c
index 70598a7..4e121ca 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5387,17 +5387,6 @@ init_buffer (void)
          enlarge_buffer_text (b, 0);
        }
     }
-  else
-    {
-      struct buffer *b;
-
-      /* Only buffers with allocated buffer text should be present at
-        this point in temacs.  */
-      FOR_EACH_BUFFER (b)
-        {
-         eassert (b->text->beg != NULL);
-       }
-    }
 #endif /* USE_MMAP_FOR_BUFFERS */
 
   AUTO_STRING (scratch, "*scratch*");



reply via email to

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