Index: third_party/tcmalloc/chromium/src/base/logging.h |
diff --git a/third_party/tcmalloc/chromium/src/base/logging.h b/third_party/tcmalloc/chromium/src/base/logging.h |
index b24a03016b9bab10e7dd0f9dfeed268b00baa499..d6a6ab58abf5ab62966a68b1a20e0622d9a5a603 100644 |
--- a/third_party/tcmalloc/chromium/src/base/logging.h |
+++ b/third_party/tcmalloc/chromium/src/base/logging.h |
@@ -85,7 +85,7 @@ DECLARE_int32(verbose); |
if (!(condition)) { \ |
WRITE_TO_STDERR("Check failed: " #condition "\n", \ |
sizeof("Check failed: " #condition "\n")-1); \ |
- exit(1); \ |
+ abort(); \ |
} \ |
} while (0) |
@@ -95,7 +95,7 @@ DECLARE_int32(verbose); |
if (!(condition)) { \ |
WRITE_TO_STDERR("Check failed: " #condition ": " message "\n", \ |
sizeof("Check failed: " #condition ": " message "\n")-1);\ |
- exit(1); \ |
+ abort(); \ |
} \ |
} while (0) |
@@ -118,7 +118,7 @@ enum { DEBUG_MODE = 1 }; |
sizeof("Check failed: " #condition ": ")-1); \ |
WRITE_TO_STDERR(strerror(err_no), strlen(strerror(err_no))); \ |
WRITE_TO_STDERR("\n", sizeof("\n")-1); \ |
- exit(1); \ |
+ abort(); \ |
} \ |
} while (0) |
@@ -135,7 +135,7 @@ enum { DEBUG_MODE = 1 }; |
do { \ |
if (!((val1) op (val2))) { \ |
fprintf(stderr, "Check failed: %s %s %s\n", #val1, #op, #val2); \ |
- exit(1); \ |
+ abort(); \ |
} \ |
} while (0) |
@@ -197,7 +197,7 @@ enum LogSeverity {INFO = -1, WARNING = -2, ERROR = -3, FATAL = -4}; |
inline void LogPrintf(int severity, const char* pat, va_list ap) { |
// We write directly to the stderr file descriptor and avoid FILE |
// buffering because that may invoke malloc() |
- char buf[1600]; |
+ char buf[600]; |
perftools_vsnprintf(buf, sizeof(buf)-1, pat, ap); |
if (buf[0] != '\0' && buf[strlen(buf)-1] != '\n') { |
assert(strlen(buf)+1 < sizeof(buf)); |