[Openmp-commits] [PATCH] D132532: [libomptarget] Avoid deleting the same entry multiple times

Ye Luo via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 24 07:12:54 PDT 2022


ye-luo added a comment.

In D132532#3745640 <https://reviews.llvm.org/D132532#3745640>, @jdoerfert wrote:

> I thought about this but IIRC, this doesn't work either. Now you have no way to prevent races between the copy back and copy to since the entry is gone while the copy back runs.

I thought about the racing. If race to write the same data, there is no harm. If race to write different data, the source of race is user program which needs to protect the race anyway.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132532



More information about the Openmp-commits mailing list