diff options
| author | Eli Zaretskii | 2018-10-17 18:19:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-10-17 18:19:47 +0300 |
| commit | 73567432329a245b2eb02e4c61adea2c8eab6b3a (patch) | |
| tree | 2dbdfc862dc4b4dbea44b2f613720c50915406cc /src/alloc.c | |
| parent | 134ba45bf0c11048c44a46c11d5dc8da12ca4d3e (diff) | |
| download | emacs-73567432329a245b2eb02e4c61adea2c8eab6b3a.tar.gz emacs-73567432329a245b2eb02e4c61adea2c8eab6b3a.zip | |
Avoid assertion violation when comparing with main-thread
* src/thread.c (unmark_main_thread): New function.
* src/lisp.h (unmark_main_thread): Prototype it.
* src/alloc.c (garbage_collect_1): Call it after sweeping.
(Bug#33073)
* test/src/thread-tests.el (threads-test-bug33073): New test.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 3b150797c36..0e48b33882c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5863,6 +5863,8 @@ garbage_collect_1 (void *end) | |||
| 5863 | VECTOR_UNMARK (&buffer_defaults); | 5863 | VECTOR_UNMARK (&buffer_defaults); |
| 5864 | VECTOR_UNMARK (&buffer_local_symbols); | 5864 | VECTOR_UNMARK (&buffer_local_symbols); |
| 5865 | 5865 | ||
| 5866 | unmark_main_thread (); | ||
| 5867 | |||
| 5866 | check_cons_list (); | 5868 | check_cons_list (); |
| 5867 | 5869 | ||
| 5868 | gc_in_progress = 0; | 5870 | gc_in_progress = 0; |