projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4904fb3
)
Don't mark main_thread (Bug#36155)
author
Andreas Schwab
<schwab@linux-m68k.org>
Mon, 10 Jun 2019 10:34:38 +0000
(12:34 +0200)
committer
Andreas Schwab
<schwab@linux-m68k.org>
Mon, 10 Jun 2019 10:35:35 +0000
(12:35 +0200)
* thread.c (mark_threads_callback): Don't mark main_thread.
src/thread.c
patch
|
blob
|
history
diff --git
a/src/thread.c
b/src/thread.c
index 0cd1ae33dc2ed5f7cb545169161aa9f6eff8b135..e21580198390a7079f1f449118e60961df0b2244 100644
(file)
--- a/
src/thread.c
+++ b/
src/thread.c
@@
-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);
}
}