https://d.puremagic.com/issues/show_bug.cgi?id=3243


Bloutiouf <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #3 from Bloutiouf <[email protected]> 2013-11-26 15:41:29 PST ---
I have this "bug" with D2.064. However, I'm not sure it is a bug, and that it
should be fixed the way Jeremie suggested, because static constructors
initialize thread local data. If you make the gate gshared, then you will only
initialize for one thread.

By the way, the line Jeremie gave for patching is now:

v->storage_class = isSharedStaticCtorDeclaration() ? STCstatic : STCtls;

There is also the same pattern below for the destructor (not in Jeremie's
patch).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to