| Index: base/process_util_linux.cc
|
| diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
|
| index 1a7e0906210185d09f9b567a9220bee6a50bfd93..8d488248fed5b92484d6f9465f26b618519ace57 100644
|
| --- a/base/process_util_linux.cc
|
| +++ b/base/process_util_linux.cc
|
| @@ -513,6 +513,12 @@ void OnNoMemory() {
|
| } // namespace
|
|
|
| extern "C" {
|
| +// This code tries to make malloc failures fatal for security reasons. However,
|
| +// it breaks builds depending on fine details of the linker command line and
|
| +// the dependencies of other .so's that we pull in. So it's disabled for the
|
| +// moment. See crbug.com/31809
|
| +
|
| +#if 0
|
| #if !defined(LINUX_USE_TCMALLOC)
|
|
|
| typedef void* (*malloc_type)(size_t size);
|
| @@ -599,6 +605,7 @@ int posix_memalign(void** ptr, size_t alignment, size_t size) {
|
| }
|
|
|
| #endif // !defined(LINUX_USE_TCMALLOC)
|
| +#endif
|
| } // extern C
|
|
|
| void EnableTerminationOnOutOfMemory() {
|
|
|