Skip to content

Commit

Permalink
[scudo] [NFC] remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
fmayer committed Dec 19, 2023
1 parent fdee0a3 commit 4f9ad0f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions compiler-rt/lib/scudo/standalone/combined.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4f9ad0f

Please sign in to comment.