[llvm] [Offload] Properly guard modifications to the RPC device array (PR #126790)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 12:36:32 PST 2025


================
@@ -128,6 +128,7 @@ void RPCServerTy::ServerThread::run() {
     Lock.unlock();
     while (NumUsers.load(std::memory_order_relaxed) > 0 &&
            Running.load(std::memory_order_relaxed)) {
+      std::lock_guard<decltype(Mutex)> Lock(BufferMutex);
----------------
jplehr wrote:

How often do we hit this line?

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


More information about the llvm-commits mailing list