]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Don't mark main_thread (Bug#36155)"
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 10 Jun 2019 10:52:21 +0000 (12:52 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 10 Jun 2019 10:52:21 +0000 (12:52 +0200)
This reverts commit 1877b7b4d79b3434379fd5a4abd85906c25df00c.

src/thread.c

index e21580198390a7079f1f449118e60961df0b2244..0cd1ae33dc2ed5f7cb545169161aa9f6eff8b135 100644 (file)
@@ -645,10 +645,7 @@ mark_threads_callback (void *ignore)
       Lisp_Object thread_obj;
 
       XSETTHREAD (thread_obj, iter);
-      /* Don't mark main_thread, since it is not allocated
-        dynamically, thus nothing would unmark it.  */
-      if (iter != &main_thread)
-       mark_object (thread_obj);
+      mark_object (thread_obj);
       mark_one_thread (iter);
     }
 }