[Issue 4890] GC.collect() deadlocks multithreaded program.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 24 06:05:20 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4890


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com


--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> 2011-01-24 06:03:14 PST ---
(In reply to comment #3)
> I've also stumbled over the racing condition in thread_processGCMarks() where a
> thread was already added to the global thread list but didn't had it's m_tls
> set yet. It seems fine to test for m_tls being null at that specific place.

That's something that I recently added.

Sean, can you confirm that if a thread's m_tls is not yet set, then it's actual
TLS can not have been used yet?  It seems reasonable to check the tls block for
null at that point.

(will have to start using github soon...)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list