mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-19 12:20:17 -08:00
Don't mark main_thread (Bug#36155)
* thread.c (mark_threads_callback): Don't mark main_thread.
This commit is contained in:
parent
4904fb352c
commit
1877b7b4d7
1 changed files with 4 additions and 1 deletions
|
|
@ -645,7 +645,10 @@ mark_threads_callback (void *ignore)
|
||||||
Lisp_Object thread_obj;
|
Lisp_Object thread_obj;
|
||||||
|
|
||||||
XSETTHREAD (thread_obj, iter);
|
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);
|
mark_one_thread (iter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue