[compiler-rt] [scudo] Handle failed mmap for allocation ring buffer (PR #71817)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 10 02:22:50 PST 2023
================
@@ -1501,6 +1503,11 @@ class Allocator {
getPageSizeCached()),
"scudo:ring_buffer");
RawRingBuffer = reinterpret_cast<char *>(MemMap.getBase());
+ if (RawRingBuffer == nullptr) {
+ Printf("Failed to allocate allocation ring buffer of size %d",
+ getFlags()->allocation_ring_buffer_size);
+ return;
----------------
fmayer wrote:
That's also possible. The main thing I was thinking of `ENOMEM`.
https://github.com/llvm/llvm-project/pull/71817
More information about the llvm-commits
mailing list