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

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 10:12:07 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();
----------------
ChiaHungDuan wrote:

I guess this is skipped. I would like to have it like
```
getRingBuffer()->disable();
```
Same as enable()

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


More information about the llvm-commits mailing list