[compiler-rt] [scudo] Allow to resize allocation ring buffer (PR #82683)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 14:28:27 PST 2024
================
@@ -1594,12 +1600,33 @@ class Allocator {
RB->StackDepotSize = StackDepotSize;
RB->RawStackDepotMap = DepotMap;
- atomic_store(&RingBufferAddress, reinterpret_cast<uptr>(RB),
- memory_order_release);
+ swapOutRingBuffer(RB);
static_assert(sizeof(AllocationRingBuffer) %
alignof(typename AllocationRingBuffer::Entry) ==
0,
"invalid alignment");
----------------
ChiaHungDuan wrote:
Please move this to the class definition of AllocationRingBuffer
https://github.com/llvm/llvm-project/pull/82683
More information about the llvm-commits
mailing list