[dmd-internals] __tls_callbacks_a

Alex xtzgzorex at gmail.com
Tue Jan 17 00:22:35 PST 2012


After some investigation, it seems DMC's snn.lib is where it's
defined, and it seems completely unused. Any reason it's there?

Regards,
Alex

On Tue, Jan 17, 2012 at 8:59 AM, Alex <xtzgzorex at gmail.com> wrote:
> Hi,
>
> It seems that either DMD or Optlink is emitting this symbol, most
> likely because it was expected that users would like to define TLS
> callbacks. However, in D we have nothing like _CRTALLOC() or
> __declspec(allocate()), so we cannot specify that we want a callback
> registered there. This callback is rather essential for a virtual
> machine that me and a few others are working on, so is there some kind
> of workaround we could use? Or perhaps we're just missing the way this
> is supposed to used in the first place?
>
> Regards,
> Alex


More information about the dmd-internals mailing list