[Openmp-commits] [PATCH] D114005: [OpenMP][Tools] Fix handling of initial-task-end

Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 31 10:34:34 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7641e42def02: [OpenMP][Tools] Fix handling of initial-task-end (authored by protze.joachim, committed by Chi-Chun, Chen <chichunchen844 at gmail.com>).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114005

Files:
  openmp/tools/archer/ompt-tsan.cpp


Index: openmp/tools/archer/ompt-tsan.cpp
===================================================================
--- openmp/tools/archer/ompt-tsan.cpp
+++ openmp/tools/archer/ompt-tsan.cpp
@@ -686,10 +686,10 @@
 #endif
     assert(Data->RefCount == 1 &&
            "All tasks should have finished at the implicit barrier!");
-    Data->Delete();
     if (type & ompt_task_initial) {
-      ToParallelData(parallel_data)->Delete();
+      Data->Team->Delete();
     }
+    Data->Delete();
     TsanFuncExit();
     break;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114005.419513.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220331/81d7029c/attachment.bin>


More information about the Openmp-commits mailing list