Commit 1877b7b4 authored by Andreas Schwab's avatar Andreas Schwab

Don't mark main_thread (Bug#36155)

* thread.c (mark_threads_callback): Don't mark main_thread.
parent 4904fb35
Pipeline #1979 failed with stage
in 5 seconds
......@@ -645,7 +645,10 @@ mark_threads_callback (void *ignore)
Lisp_Object thread_obj;
XSETTHREAD (thread_obj, iter);
mark_object (thread_obj);
/* 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_one_thread (iter);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment