emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 745c9c0: Revert "Revert "Fix infloop in GC mark_k


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 745c9c0: Revert "Revert "Fix infloop in GC mark_kboards""
Date: Sun, 2 Dec 2018 13:07:23 -0500 (EST)

branch: emacs-26
commit 745c9c02582443680167501b218cc59f1a2d3fb6
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Revert "Revert "Fix infloop in GC mark_kboards""
    
    This reverts commit c418c85617babbe7b63730fefb71e2c87a0141af.
    This reinstates the original fix, as it had nothing to do
    with the behavior reported in bug#33571, which seems to be
    the expected behavior.
---
 src/keyboard.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index 0d56ea3..dccc6b7 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -12011,7 +12011,12 @@ mark_kboards (void)
     for (event = kbd_fetch_ptr; event != kbd_store_ptr; event++)
       {
        if (event == kbd_buffer + KBD_BUFFER_SIZE)
-         event = kbd_buffer;
+         {
+           event = kbd_buffer;
+           if (event == kbd_store_ptr)
+             break;
+         }
+
        /* These two special event types has no Lisp_Objects to mark.  */
        if (event->kind != SELECTION_REQUEST_EVENT
            && event->kind != SELECTION_CLEAR_EVENT)



reply via email to

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