Don't print dialog box prior to crashing.
authordjsollen <djsollen@google.com>
Thu, 4 Feb 2016 16:59:35 +0000 (08:59 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Feb 2016 16:59:35 +0000 (08:59 -0800)
This returns us to our previous behavior when we used 0xbbadbeef
to cause the process to terminate.

BUG=skia:4893
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1667113002

Review URL: https://codereview.chromium.org/1667113002

src/ports/SkMemory_malloc.cpp

index 008352e..9fc17b7 100644 (file)
@@ -27,6 +27,10 @@ static inline void* throw_on_failure(size_t size, void* p) {
 }
 
 void sk_abort_no_print() {
+#ifdef SK_BUILD_FOR_WIN
+    // do not display a system dialog before aborting the process
+    _set_abort_behavior(0, _WRITE_ABORT_MSG);
+#endif
     abort();
 }