Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: base/process/memory.h

Issue 1039043002: Add base::TerminateBecauseOutOfMemory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Mar 26 16:12:29 PDT 2015 Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/memory.cc » ('j') | base/process/memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/memory.h
diff --git a/base/process/memory.h b/base/process/memory.h
index 100d9c72f43910c0c351e84c252169f3e3be6052..0185b96d99298b873ce0cedf4b5921a42045ec23 100644
--- a/base/process/memory.h
+++ b/base/process/memory.h
@@ -39,6 +39,10 @@ BASE_EXPORT void EnableTerminationOnHeapCorruption();
// Turns on process termination if memory runs out.
BASE_EXPORT void EnableTerminationOnOutOfMemory();
+// Terminate process. Should be called only for out of memory errors.
+// Crash reporting classifies such crashes as OOM.
+BASE_EXPORT void CrashWithOutOfMemory();
reveman 2015/03/27 05:05:20 Maybe TerminateBecauseOutOfMemory() would make it
Vitaly Buka (NO REVIEWS) 2015/03/27 06:29:13 Done.
+
#if defined(OS_WIN)
// Returns the module handle to which an address belongs. The reference count
// of the module is not incremented.
« no previous file with comments | « no previous file | base/process/memory.cc » ('j') | base/process/memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698