[llvm] [Offload] Make olLaunchKernel test thread safe (PR #149497)

Kevin Sala Penades via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 22:13:58 PDT 2025


================
@@ -75,6 +76,11 @@ struct __tgt_async_info {
   /// should be freed after finalization.
   llvm::SmallVector<void *, 2> AssociatedAllocations;
 
+  /// Mutex to guard access to AssociatedAllocations and the Queue.
+  /// This is only used for liboffload and should be ignored in libomptarget
+  /// code.
----------------
kevinsala wrote:

Is this actually ignored for libomptarget? I think you're unconditionally acquiring the mutex.

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


More information about the llvm-commits mailing list