> in the .EXE or in DLLs statically linked by the .EXE, so not libxul, but in > our shipped Windows builds mozglue.dll is statically linked to firefox.exe > so we could put __declspec(thread) variables there.
What does 'statically linked' mean in this context? Mozglue.dll is still a DLL, but yes it's a load-time link in version 33. Starting in version 34 it's a delay-load due to some WinXP sorcery. ----- Original Message ----- > From: "Robert O'Callahan" <rob...@ocallahan.org> > To: dev-platform@lists.mozilla.org > Sent: Friday, October 17, 2014 10:10:57 AM > Subject: Using __declspec(thread) on Windows > > It would be cool to use fast TLS via __declspec(thread) on Windows (and > __thread on gcc/clang). Due to WinXP bustage that only works for variables > in the .EXE or in DLLs statically linked by the .EXE, so not libxul, but in > our shipped Windows builds mozglue.dll is statically linked to firefox.exe > so we could put __declspec(thread) variables there. > > However, that would break if someone tried to dynamically load libxul on > WinXP in the context of a .EXE which did not statically link mozglue.dll. > Does anyone know if that's a problem? I assume no-one's finding the Firefox > libxul.dll and loading it from their own .EXE, but maybe they're building > their own? Do we care? > > Rob > -- > oIo otoeololo oyooouo otohoaoto oaonoyooonoeo owohooo oioso oaonogoroyo > owoiotoho oao oboroootohoeoro oooro osoiosotoeoro owoiololo oboeo > osouobojoeocoto otooo ojouodogomoeonoto.o oAogoaoiono,o oaonoyooonoeo > owohooo > osoaoyoso otooo oao oboroootohoeoro oooro osoiosotoeoro,o o‘oRoaocoao,o’o > oioso > oaonosowoeoroaoboloeo otooo otohoeo ocooouoroto.o oAonodo oaonoyooonoeo > owohooo > osoaoyoso,o o‘oYooouo ofooooolo!o’o owoiololo oboeo oiono odoaonogoeoro > ooofo > otohoeo ofoioroeo ooofo ohoeololo. > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform