[D-runtime] GC expectations from TLS?
Sean Kelly
sean at invisibleduck.org
Fri Nov 12 14:56:40 PST 2010
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.
More information about the D-runtime
mailing list