Index: third_party/tcmalloc/chromium/src/base/abort.cc |
=================================================================== |
--- third_party/tcmalloc/chromium/src/base/abort.cc (revision 0) |
+++ third_party/tcmalloc/chromium/src/base/abort.cc (working copy) |
@@ -0,0 +1,18 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "base/abort.h" |
+ |
+#include "base/basictypes.h" |
+ |
+namespace tcmalloc { |
+ |
+// Try not to inline so we can find Abort() call from stack trace. |
+ATTRIBUTE_NOINLINE void Abort() { |
+ // Make a segmentation fault to force abort. Writing to a specific address |
+ // so it's easier to find on crash stacks. |
+ *(reinterpret_cast<volatile char*>(NULL) + 57) = 0x2001; |
+} |
+ |
+} // namespace tcmalloc |
Property changes on: third_party/tcmalloc/chromium/src/base/abort.cc |
___________________________________________________________________ |
Added: svn:executable |
## -0,0 +1 ## |
+* |
\ No newline at end of property |