[Openmp-commits] [PATCH] D135391: [OpenMP][DeviceRTL] Fix an issue that thread array might be corrupted

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Oct 6 12:58:35 PDT 2022


jhuber6 added inline comments.


================
Comment at: openmp/libomptarget/DeviceRTL/src/State.cpp:266
     void *ThreadStatesPtr =
-        memory::allocShared(Bytes, "Thread state array allocation");
+        memory::allocGlogal(Bytes, "Thread state array allocation");
     if (!atomic::cas(ThreadStatesBitsPtr, uintptr_t(0),
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135391



More information about the Openmp-commits mailing list