[Webkit-unassigned] [Bug 204398] [Win] Use thread_local to hold Ref<WTF::Thread> in the thread rather than using FLS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 13 04:06:03 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=204398
--- Comment #14 from Fujii Hironori <Hironori.Fujii at sony.com> ---
Windows doesn't support dllexport of thread_local variable. So, it's unable to access thread_local variable on other DLL.
Compiler Error C2492 | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2492?redirectedfrom=MSDN&view=vs-2019
Windows uses init-exec model as default, and local-exec models if /GA switch is specified and it's a EXE.
without /GA
00007FF775A61324 mov ecx,dword ptr [_tls_index (07FF775A68150h)]
00007FF775A6132A mov rax,qword ptr gs:[58h]
00007FF775A61333 mov edx,104h
00007FF775A61338 mov rax,qword ptr [rax+rcx*8]
with /GA
00007FF6D9431324 mov rax,qword ptr gs:[58h]
00007FF6D943132D mov edx,104h
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191213/dcda410b/attachment-0001.htm>
More information about the webkit-unassigned
mailing list