[Openmp-commits] [PATCH] D95786: [OpenMP] Fix seg fault in libomptarget when using Info with multiple threads

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 1 08:29:21 PST 2021


JonChesterfield added inline comments.


================
Comment at: openmp/libomptarget/src/private.h:112
        "Target Ptr", "Size (B)", "RefCount", "Declaration");
+  Device.DataMapMtx.lock();
   for (const auto &HostTargetMap : Device.HostDataToTargetMap) {
----------------
Is this stuff built with exceptions disabled? Used to seeing unlock() called from destructors.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95786/new/

https://reviews.llvm.org/D95786



More information about the Openmp-commits mailing list