[Openmp-commits] [PATCH] D39439: [OpenMP]Fix race condition in omp_init_lock
Olga Malysheva via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Oct 31 03:27:39 PDT 2017
omalyshe added inline comments.
================
Comment at: runtime/test/lock/omp_init_lock.c:19
+ for (j = 0; j < 1000; j++) {
+ omp_init_lock(&lcks[j]);
+ }
----------------
Should be omp_destroy_lock(), right?
With this change I don't see the crash. The test successfully finishes with REPETITIONS=10000
https://reviews.llvm.org/D39439
More information about the Openmp-commits
mailing list