[ASan] Use ExitProcess rather than _exit on Windows to avoid calling global dtors etc

llvm-svn: 195723
This commit is contained in:
Timur Iskhodzhanov 2013-11-26 09:40:39 +00:00
parent 6378cf539f
commit 895392d03f
1 changed files with 2 additions and 2 deletions

View File

@ -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