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,6 +645,9 @@ mark_threads_callback (void *ignore) ...@@ -645,6 +645,9 @@ mark_threads_callback (void *ignore)
Lisp_Object thread_obj; Lisp_Object thread_obj;
XSETTHREAD (thread_obj, iter); 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); 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