On Fri, Oct 17, 2014 at 10:10:57AM +1300, Robert O'Callahan wrote: > 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?
Firefox.exe is unfortunately not the only executable we're actively using and that load xul.dll. There's at least webapprt.exe and plugin-container.exe, and I know for a fact that the former doesn't statically link mozglue.dll. IOW, you'd break webapps. Mike _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform