diff options
author | Martin Storsjö <martin@martin.st> | 2021-05-21 23:50:01 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-05-22 23:41:40 +0300 |
commit | b4fd512c36ca344a3ff69350219e8b0a67e9472a (patch) | |
tree | 839bc073c5b93420973f830ef3d046f0386f0d6d /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | c5638a71d805330294e9b6e2c670e1ed7420b63a (diff) | |
download | llvm-b4fd512c36ca344a3ff69350219e8b0a67e9472a.zip llvm-b4fd512c36ca344a3ff69350219e8b0a67e9472a.tar.gz llvm-b4fd512c36ca344a3ff69350219e8b0a67e9472a.tar.bz2 |
[Windows] Use TerminateProcess to exit without running destructors
If exiting using _Exit or ExitProcess, DLLs are still unloaded
cleanly before exiting, running destructors and other cleanup in those
DLLs. When the caller expects to exit without cleanup, running
destructors in some loaded DLLs (which can be either libLLVM.dll or
e.g. libc++.dll) can cause deadlocks occasionally.
This is an alternative to D102684.
Differential Revision: https://reviews.llvm.org/D102944
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions