diff options
| author | Eli Zaretskii | 2018-12-02 20:04:05 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-12-02 20:04:05 +0200 |
| commit | 745c9c02582443680167501b218cc59f1a2d3fb6 (patch) | |
| tree | 88c6fde5a09becf30575d468da561e17ff224735 /src | |
| parent | c418c85617babbe7b63730fefb71e2c87a0141af (diff) | |
| download | emacs-745c9c02582443680167501b218cc59f1a2d3fb6.tar.gz emacs-745c9c02582443680167501b218cc59f1a2d3fb6.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 0d56ea3f7ac..dccc6b7f128 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -12011,7 +12011,12 @@ mark_kboards (void) | |||
| 12011 | for (event = kbd_fetch_ptr; event != kbd_store_ptr; event++) | 12011 | for (event = kbd_fetch_ptr; event != kbd_store_ptr; event++) |
| 12012 | { | 12012 | { |
| 12013 | if (event == kbd_buffer + KBD_BUFFER_SIZE) | 12013 | if (event == kbd_buffer + KBD_BUFFER_SIZE) |
| 12014 | event = kbd_buffer; | 12014 | { |
| 12015 | event = kbd_buffer; | ||
| 12016 | if (event == kbd_store_ptr) | ||
| 12017 | break; | ||
| 12018 | } | ||
| 12019 | |||
| 12015 | /* These two special event types has no Lisp_Objects to mark. */ | 12020 | /* These two special event types has no Lisp_Objects to mark. */ |
| 12016 | if (event->kind != SELECTION_REQUEST_EVENT | 12021 | if (event->kind != SELECTION_REQUEST_EVENT |
| 12017 | && event->kind != SELECTION_CLEAR_EVENT) | 12022 | && event->kind != SELECTION_CLEAR_EVENT) |