[compiler-rt] 4f9ad0f - [scudo] [NFC] remove unused method
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 18:54:50 PST 2023
Author: Florian Mayer
Date: 2023-12-18T18:54:32-08:00
New Revision: 4f9ad0f856a0fbbb641ea7e3888087d2e77e1a0c
URL: https://github.com/llvm/llvm-project/commit/4f9ad0f856a0fbbb641ea7e3888087d2e77e1a0c
DIFF: https://github.com/llvm/llvm-project/commit/4f9ad0f856a0fbbb641ea7e3888087d2e77e1a0c.diff
LOG: [scudo] [NFC] remove unused method
Added:
Modified:
compiler-rt/lib/scudo/standalone/combined.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h
index 65ddc488370a7d..4624f83d142a0d 100644
--- a/compiler-rt/lib/scudo/standalone/combined.h
+++ b/compiler-rt/lib/scudo/standalone/combined.h
@@ -939,19 +939,6 @@ class Allocator {
return RingBufferElements ? ringBufferSizeInBytes(RingBufferElements) : 0;
}
- static bool setRingBufferSizeForBuffer(char *Buffer, size_t Size) {
- // Need at least one entry.
- if (Size < sizeof(AllocationRingBuffer) +
- sizeof(typename AllocationRingBuffer::Entry)) {
- return false;
- }
- AllocationRingBuffer *RingBuffer =
- reinterpret_cast<AllocationRingBuffer *>(Buffer);
- RingBuffer->Size = (Size - sizeof(AllocationRingBuffer)) /
- sizeof(typename AllocationRingBuffer::Entry);
- return true;
- }
-
static const uptr MaxTraceSize = 64;
static void collectTraceMaybe(const StackDepot *Depot,
More information about the llvm-commits
mailing list