commit | 713f0a5ed02502bda7df919f7e28894bec8ec3c6 | [log] [tgz] |
---|---|---|
author | Johannes Doerfert <johannes@jdoerfert.de> | Thu Oct 07 20:57:22 2021 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 07 18:02:55 2021 -0700 |
tree | 045c657015cbc91ef1d5b11e0cb2f8d0fe31d06f | |
parent | 5c4c63cc302a1da1c79f35ee7ed8e874f823586b [diff] |
[OpenMP][FIX] Data race in the SPMD execution of the new runtime We need to synchronize the threads *before* we destroy the RAII objects that hold the old values and not after to avoid threads executing the parallel region but seeing an inconsistent state. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D111369 GitOrigin-RevId: 44710940af5bed3c338c4c397c561bfb83790218