This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix shutdown hang bug
ClosedPublic

Authored by jlpeyton on Nov 2 2020, 2:03 PM.

Details

Summary

The deadlock happens when the primary thread gets initz lock and tries to join
the worker thread which waits for the same lock in TLS key destructor.
The patch removes the lock and the code of setting TLS value which needed
the lock. Also removed setting TLS from __kmp_unregister_root_current_thread.

Diff Detail

Event Timeline

jlpeyton created this revision.Nov 2 2020, 2:03 PM
jlpeyton requested review of this revision.Nov 2 2020, 2:03 PM
This revision is now accepted and ready to land.Nov 10 2020, 11:30 AM
This revision was landed with ongoing or failed builds.Nov 11 2020, 11:48 AM
This revision was automatically updated to reflect the committed changes.