Thanks to Johnny for investigation and providing the fix. The problem was incorrect synchronization of initialization of mutexes.
Patch by Johnny Peyton.
| Paths 
 |  Differential  D61995  
Fixed second problem reported in https://bugs.llvm.org/show_bug.cgi?id=41584 ClosedPublic Authored by AndreyChurbanov on May 16 2019, 2:53 AM. 
Details 
 Summary Thanks to Johnny for investigation and providing the fix. The problem was incorrect synchronization of initialization of mutexes. Patch by Johnny Peyton. 
Diff Detail 
 Event TimelineHerald added subscribers: openmp-commits, jdoerfert, jfb.  ·  View Herald TranscriptMay 16 2019, 2:53 AM This revision is now accepted and ready to land.May 16 2019, 10:35 AM Closed by commit rOMP360919: Fixed second issue reported in https://bugs.llvm.org/show_bug.cgi?id=41584. (authored by achurbanov).  ·  Explain WhyMay 16 2019, 10:52 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 199855 runtime/src/kmp.h
 runtime/src/z_Linux_util.cpp
 runtime/src/z_Windows_NT_util.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||