summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 20:39:56 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 20:39:56 +0000
commitcccb2121a119f6d604878cf0524851bcdc9f3fff (patch)
tree0d03c64a48049728f713fc97123214f479142e3e /base/process_util.h
parentf06b43b8bf588d08631f5d3dc196fd9c0e9df3c7 (diff)
downloadchromium_src-cccb2121a119f6d604878cf0524851bcdc9f3fff.zip
chromium_src-cccb2121a119f6d604878cf0524851bcdc9f3fff.tar.gz
chromium_src-cccb2121a119f6d604878cf0524851bcdc9f3fff.tar.bz2
Ensure OOM is a killer on the Mac.
BUG=http://crbug.com/12673 TEST=as in bug Review URL: http://codereview.chromium.org/385054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 85b295b..c83dfe1 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -436,6 +436,12 @@ bool EnableLowFragmentationHeap();
// overflow. Has no effect if the OS doesn't provide the necessary facility.
void EnableTerminationOnHeapCorruption();
+#if !defined(OS_WIN)
+// Turns on process termination if memory runs out. This is handled on Windows
+// inside RegisterInvalidParamHandler().
+void EnableTerminationOnOutOfMemory();
+#endif
+
#if defined(UNIT_TEST)
// Enables stack dump to console output on exception and signals.
// When enabled, the process will quit immediately. This is meant to be used in