Comments (4)
TLS Guard changes
Previously, thread-local variables in DLLs weren't correctly initialized. Other than on the thread that loaded the DLL, they weren't initialized before first use on threads that existed before the DLL was loaded. This defect has now been corrected. Thread-local variables in such a DLL get initialized immediately before their first use on such threads.
This new behavior of testing for initialization on uses of thread-local variables may be disabled by using the /Zc:tlsGuards- compiler option. Or, by adding the [[msvc:no_tls_guard]] attribute to particular thread local variables.
由于2019更新了此功能,所以发生了这个问题,由于 VC_LTL_UCRT_CatchStateInParent 线程局部存储并不需要这种特性,而且VC-LTL其他代码也本身就做了保证,可以直接禁用此功能来进行兼容性修正。
from vc-ltl5.
另外注意,VC-LTL 4.0 原本没有这个问题,是因为添加了 /Zc:tlsGuards-
,但是到了5.0,这个选项在迁徙过程中丢失。
from vc-ltl5.
https://github.com/Chuyu-Team/VC-LTL5/actions/runs/1609904453
下载式用一下,我查看了 obj,已经没有想过依赖了。
from vc-ltl5.
https://github.com/Chuyu-Team/VC-LTL5/releases/tag/v5.0.4-Beta2
from vc-ltl5.
Related Issues (20)
- RC文件中引用VC-LTL编译失败 HOT 2
- LIBCMT.lib(exe_winmain.obj) : error LNK2001: unresolved external symbol _WinMain@16 HOT 1
- 启用 /guard:ehcont 时编译报告2047链接错误 HOT 3
- Add .NET native AOT support HOT 4
- 分享一下实际使用的体验以及对适用场景的分析(非bug) HOT 1
- 修复对VSCMD_ARG_TGT_ARCH的支持
- VC-LTL不兼容 Intel C++ Compiler 2022 工具集 HOT 2
- Win10 + VS2022 + CMake, Error HOT 4
- how to use VC-LTL5 to build a python 3.10 for windows 7? HOT 1
- 添加xmake的编译支持? HOT 3
- 14.35.32215 Self built binaries don't work HOT 11
- System-Dlls strings HOT 2
- 5.2.3790.0编译目标在Windows Server 2003 x64上无法运行 HOT 2
- unresolved external symbol HOT 1
- Windows XP模式编译时_wputenv_s发生缓冲区越界访问 HOT 1
- msvcrt模式_beginthread创建的线程无法获取ptd HOT 1
- _CxxThrowException@8、__CxxLongjmpUnwind@4导入错误 HOT 1
- add Developer PowerShell support for VC-LTL
- 请问MD编译方式能使用VC-LTL吗? HOT 2
- MFC140.dll in Redist can't run at Windows XP at 5.0.9 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vc-ltl5.