Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: runtime/bin/platform_win.cc

Issue 2981773002: [Windows] Turn off TLS destructors in the Platform exception handler (Closed)
Patch Set: Fix error code type Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_win.cc
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
index a16684525113b28472b5f251c0ce1f7a548e7d12..e21515e7fbfd2dd75ced06e875c39868e3dfe0a8 100644
--- a/runtime/bin/platform_win.cc
+++ b/runtime/bin/platform_win.cc
@@ -117,9 +117,9 @@ class PlatformWin {
DartExceptionHandler(struct _EXCEPTION_POINTERS* ExceptionInfo) {
if (ExceptionInfo->ExceptionRecord->ExceptionCode ==
EXCEPTION_ACCESS_VIOLATION) {
+ const int kAbortExitCode = 3;
Dart_DumpNativeStackTrace(ExceptionInfo->ContextRecord);
- RestoreConsole();
- abort();
+ Platform::Exit(kAbortExitCode);
}
return EXCEPTION_CONTINUE_SEARCH;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698