[compiler-rt] [NFC] Make RingBuffer an atomic pointer (PR #82547)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 10:14:01 PST 2024


================
@@ -688,14 +688,16 @@ class Allocator {
     Quarantine.disable();
     Primary.disable();
     Secondary.disable();
-    if (Depot)
-      Depot->disable();
+    AllocationRingBuffer *RB = getRingBuffer();
+    if (RB)
+      RB->disable();
----------------
fmayer wrote:

I don't get it, ringbuffer can be nullptr, so we can't just leave out the check?

https://github.com/llvm/llvm-project/pull/82547


More information about the llvm-commits mailing list