mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 21:50:32 -04:00
14 lines
426 B
C++
14 lines
426 B
C++
--- base/process/memory_stubs.cc.orig 2021-07-15 19:13:29 UTC
|
|
+++ base/process/memory_stubs.cc
|
|
@@ -19,9 +19,11 @@ bool AdjustOOMScore(ProcessId process, int score) {
|
|
return false;
|
|
}
|
|
|
|
+#if !defined(OS_BSD)
|
|
void TerminateBecauseOutOfMemory(size_t size) {
|
|
abort();
|
|
}
|
|
+#endif
|
|
|
|
// UncheckedMalloc and Calloc exist so that platforms making use of
|
|
// EnableTerminationOnOutOfMemory have a way to allocate memory without
|