]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violation when comparing with main-thread
authorEli Zaretskii <eliz@gnu.org>
Wed, 17 Oct 2018 15:19:47 +0000 (18:19 +0300)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 10 Jun 2019 10:52:31 +0000 (12:52 +0200)
commitfdd1b3e02097966e7ffe8065f6e3d27f5f540d0a
tree7163eaff57ea41c4a081bd2aff38845985d9a250
parent758e9a8ed49c15f7069a67cf0c2ce3c6f9a3f7e1
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.
src/alloc.c
src/lisp.h
src/thread.c
test/src/thread-tests.el