[D-runtime] GC expectations from TLS?

Steven Schveighoffer schveiguy at yahoo.com
Fri Nov 12 15:26:02 PST 2010


Static ctor/dtor?

Sent from my iPhone

On Nov 12, 2010, at 5:56 PM, Sean Kelly <sean at invisibleduck.org> wrote:

> On Nov 12, 2010, at 12:25 PM, Steve Schveighoffer wrote:
>> 
>> I would like to avoid a heap allocation (which I know will work) on every thread 
>> creation, but it's looking to me like this is what's going to have to happen.  I 
>> probably can use malloc to avoid it being scanned.  Is there another way?
> 
> I don't think there is.  The TLS block is static memory, so there's no way to flag it as not containing pointers.  You'll need some way of being notified when the block is collected too.
> _______________________________________________
> D-runtime mailing list
> D-runtime at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/d-runtime


More information about the D-runtime mailing list