[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 0a5b6e2: Fix aborts in GC under GC_CHECK_MARKED
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master 0a5b6e2: Fix aborts in GC under GC_CHECK_MARKED_OBJECTS |
Date: |
Wed, 21 Dec 2016 17:52:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
>> If they're removed from all_threads when the thread terminates, then
>> there can still be references to the thread object stored elsewhere in
>> the heap.
> They are all unlinked in run_thread, when the thread exits, AFAICT.
> Or maybe I don't understand what you mean by "references".
AFAIK `make-thread` returns a thread object, which you can store
anywhere you like. So even if you remove the thread object from
all_threads, it may still be referenced from all kinds of other place.
Stefan