[compiler-rt] [scudo] Only init RingBuffer when needed. (PR #85994)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 14:14:11 PDT 2024
================
@@ -181,13 +181,15 @@ class Allocator {
static_cast<uptr>(getFlags()->thread_local_quarantine_size_kb << 10));
}
- void enableRingBuffer() {
+ void enableRingBuffer() NO_THREAD_SAFETY_ANALYSIS {
+ RingBufferInitLock.unlock();
AllocationRingBuffer *RB = getRingBuffer();
if (RB)
RB->Depot->enable();
}
----------------
cferris1000 wrote:
Done.
https://github.com/llvm/llvm-project/pull/85994
More information about the llvm-commits
mailing list