The GC and performance, but not what you expect
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 29 13:08:16 PDT 2014
On Thu, 29 May 2014 16:01:16 -0400, Sean Kelly <sean at invisibleduck.org>
wrote:
> On Thursday, 29 May 2014 at 19:00:24 UTC, Walter Bright wrote:
>>
>> If it's single threaded, and the single thread is doing the collecting,
>> who is starting up a new thread?
>
> class Foo {
> ~this() {
> auto t = new Thread({ auto a = new char[100]; });
> t.start();
> }
> }
It's my understanding that dtors are run without the lock held. Is that no
longer true?
-Steve
More information about the Digitalmars-d
mailing list