Page MenuHomePhabricator

Fix hanging barriers if number of parallel regions exceeds UINT_MAX
ClosedPublic

Authored by jlpeyton on Sep 2 2015, 10:52 AM.

Details

Summary

The fix is to make b_arrived flag 64 bit in both structures - kmp_balign_team_t and kmp_balign_t. Otherwise when flag in kmp_balign_team_t wrapped over UINT_MAX the library hangs.

Diff Detail

Repository
rL LLVM

Event Timeline

jlpeyton updated this revision to Diff 33827.Sep 2 2015, 10:52 AM
jlpeyton retitled this revision from to Fix hanging barriers if number of parallel regions exceeds UINT_MAX.
jlpeyton updated this object.
jlpeyton added reviewers: AndreyChurbanov, hfinkel.
jlpeyton set the repository for this revision to rL LLVM.
jlpeyton added a subscriber: openmp-commits.
AndreyChurbanov accepted this revision.Sep 8 2015, 9:12 AM
AndreyChurbanov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 8 2015, 9:12 AM
This revision was automatically updated to reflect the committed changes.