[Openmp-commits] [PATCH] D81054: [OpenMP] Introduce target memory manager
Ye Luo via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Aug 12 16:54:14 PDT 2020
ye-luo added inline comments.
================
Comment at: openmp/libomptarget/src/MemoryManager.cpp:149
+ FreeListTy &List = FreeLists[I];
+ if (List.empty())
+ continue;
----------------
There can be race when you test List.empty().
================
Comment at: openmp/libomptarget/src/MemoryManager.cpp:273
+ // Insert the node into the map table if it is not there
+ if (PtrToNodeTable.find(NodePtr->Ptr) == PtrToNodeTable.end()) {
+ std::lock_guard<std::mutex> Guard(MapTableLock);
----------------
There can be race in PtrToNodeTable when you find()
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81054/new/
https://reviews.llvm.org/D81054
More information about the Openmp-commits
mailing list