summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 23:47:22 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-28 23:47:22 +0000
commit397bba74e3674b0f80c209b89735e615fe7979f9 (patch)
tree5efa15bdeabf3dbeeb570eab6fdd67e4f2291d18 /base
parent4916d62ca7ae3365d8234682dc28b815ad4c5031 (diff)
downloadchromium_src-397bba74e3674b0f80c209b89735e615fe7979f9.zip
chromium_src-397bba74e3674b0f80c209b89735e615fe7979f9.tar.gz
chromium_src-397bba74e3674b0f80c209b89735e615fe7979f9.tar.bz2
Make CrMallocErrorBreak die in a more spectacular fashion.
BUG=none TEST=Make crash stacks a little more obvious. Review URL: http://codereview.chromium.org/8065024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util_mac.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm
index ceb4f0a..e364d1b 100644
--- a/base/process_util_mac.mm
+++ b/base/process_util_mac.mm
@@ -547,7 +547,8 @@ void CrMallocErrorBreak() {
g_original_malloc_error_break();
LOG(ERROR) <<
"Terminating process due to a potential for future heap corruption";
- base::debug::BreakDebugger();
+ int* death_ptr = NULL;
+ *death_ptr = 0xf00bad;
}
} // namespace