[Issue 3054] multithreading GC problem. And Stdio not multithreading safe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 16 21:58:28 PDT 2009


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


Sean Kelly <sean at invisibleduck.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sean at invisibleduck.org
         Resolution|                            |INVALID




--- Comment #2 from Sean Kelly <sean at invisibleduck.org>  2009-06-16 21:58:28 PDT ---
Regarding:

t = new Thread( (){while(true){}});
delete t;

This code will create and then destroy a thread object because t.start() is
never called.  Even if you call t.start() however, the delete will occur
immediately because it is not preceded by t.join().

As for the TLS issue, Thread.sm_tbeg will be null until thread_init() is called
by the GC, so the loop containing the scan(tls) call won't execute before the
TLS slice is initialized.

I'm going to mark this ticket as resolved since the issues I addressed above
aren't actually problems with the design.

-- 
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