aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-02-08 14:31:27 -0600
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-02-22 13:15:06 -0600
commit1b968467c057df980df214a88cddac74dccff15e (patch)
tree01b5d4171be7cd1e87b21eabbe2759875c76e779 /clang/lib/Frontend/CompilerInvocation.cpp
parent8c73be9d86758beae1cda30f9eba2e92023d6c60 (diff)
downloadllvm-1b968467c057df980df214a88cddac74dccff15e.zip
llvm-1b968467c057df980df214a88cddac74dccff15e.tar.gz
llvm-1b968467c057df980df214a88cddac74dccff15e.tar.bz2
[OpenMP] Remove shutdown attempt on Windows process detach
Only attempt shutdown if lpReserved is NULL. The Windows documentation states: When handling DLL_PROCESS_DETACH, a DLL should free resources such as heap memory only if the DLL is being unloaded dynamically (the lpReserved parameter is NULL). If the process is terminating (the lpReserved parameter is non-NULL), all threads in the process except the current thread either have exited already or have been explicitly terminated by a call to the ExitProcess function, which might leave some process resources such as heaps in an inconsistent state. In this case, it is not safe for the DLL to clean up the resources. Instead, the DLL should allow the operating system to reclaim the memory. Differential Revision: https://reviews.llvm.org/D96750
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions