Chromium Code Reviews| 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. |