[compiler-rt] r195723 - [ASan] Use ExitProcess rather than _exit on Windows to avoid calling global dtors etc
Timur Iskhodzhanov
timurrrr at google.com
Tue Nov 26 01:40:40 PST 2013
Author: timurrrr
Date: Tue Nov 26 03:40:39 2013
New Revision: 195723
URL: http://llvm.org/viewvc/llvm-project?rev=195723&view=rev
Log:
[ASan] Use ExitProcess rather than _exit on Windows to avoid calling global dtors etc
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=195723&r1=195722&r2=195723&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Tue Nov 26 03:40:39 2013
@@ -215,7 +215,7 @@ u64 NanoTime() {
void Abort() {
abort();
- _exit(-1); // abort is not NORETURN on Windows.
+ internal__exit(-1); // abort is not NORETURN on Windows.
}
uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
@@ -305,7 +305,7 @@ uptr internal_sched_yield() {
}
void internal__exit(int exitcode) {
- _exit(exitcode);
+ ExitProcess(exitcode);
}
// ---------------------- BlockingMutex ---------------- {{{1
More information about the llvm-commits
mailing list