diff options
| author | Eli Zaretskii | 2016-12-22 18:13:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-12-22 18:13:16 +0200 |
| commit | 5fcc777ff36c3102ddddd2fb932cb8d0b7cc2741 (patch) | |
| tree | 17c618f6fa1b60537f0eef627432b7bc9ebefa5e /src/thread.c | |
| parent | 3ec1503374d3115651c130eaeee31181266d0863 (diff) | |
| download | emacs-5fcc777ff36c3102ddddd2fb932cb8d0b7cc2741.tar.gz emacs-5fcc777ff36c3102ddddd2fb932cb8d0b7cc2741.zip | |
Fix last change with thread marking under GC_CHECK_MARKED_OBJECTS
* src/thread.c (primary_thread_p): New function.
* src/alloc.c (mark_object): Use 'primary_thread_p' to bypass tests
meant for thread objects allocated dynamically.
* src/thread.h (primary_thread_p): Add prototype.
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index bf2cf1b06c8..6966df31d37 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -950,6 +950,12 @@ init_primary_thread (void) | |||
| 950 | primary_thread.event_object = Qnil; | 950 | primary_thread.event_object = Qnil; |
| 951 | } | 951 | } |
| 952 | 952 | ||
| 953 | bool | ||
| 954 | primary_thread_p (void *ptr) | ||
| 955 | { | ||
| 956 | return (ptr == &primary_thread) ? true : false; | ||
| 957 | } | ||
| 958 | |||
| 953 | void | 959 | void |
| 954 | init_threads_once (void) | 960 | init_threads_once (void) |
| 955 | { | 961 | { |