[Gc] Win32 thread support

Ben Hutchings ben.hutchings at businesswebsoftware.com
Fri Apr 1 09:21:22 PST 2005


Boehm, Hans wrote:
> It still seems like allocating memory inside DllMain is risky?
> Especially if it's done through GC_INTERNAL_MALLOC, which
> can trigger a GC, etc.
<snip>

I use GlobalAlloc instead.  That seems safe to me - if it wasn't, that 
would break any C++ program that allocates in a constructor for static data.

Ben.


More information about the Gc mailing list