File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -939,19 +939,6 @@ class Allocator {
939
939
return RingBufferElements ? ringBufferSizeInBytes (RingBufferElements) : 0 ;
940
940
}
941
941
942
- static bool setRingBufferSizeForBuffer (char *Buffer, size_t Size) {
943
- // Need at least one entry.
944
- if (Size < sizeof (AllocationRingBuffer) +
945
- sizeof (typename AllocationRingBuffer::Entry)) {
946
- return false ;
947
- }
948
- AllocationRingBuffer *RingBuffer =
949
- reinterpret_cast <AllocationRingBuffer *>(Buffer);
950
- RingBuffer->Size = (Size - sizeof (AllocationRingBuffer)) /
951
- sizeof (typename AllocationRingBuffer::Entry);
952
- return true ;
953
- }
954
-
955
942
static const uptr MaxTraceSize = 64 ;
956
943
957
944
static void collectTraceMaybe (const StackDepot *Depot,
You can’t perform that action at this time.
0 commit comments