[Openmp-commits] [PATCH] D28377: Fix a race in shutdown when tasking is used

Terry Wilmarth via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 31 16:06:35 PST 2017


tlwilmar updated this revision to Diff 86519.
tlwilmar added a comment.

Reap state does not need to be reset after each barrier.  If thread attempts to execute tasks, it will be set to NOT SAFE to reap.  It only matters in the spin at the fork barrier after shutdown is triggered.  Master thread now waits for ALL threads to reach SAFE state before proceeding to clean anything up.


Repository:
  rL LLVM

https://reviews.llvm.org/D28377

Files:
  runtime/src/kmp.h
  runtime/src/kmp_runtime.cpp
  runtime/src/kmp_tasking.cpp
  runtime/src/kmp_wait_release.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28377.86519.patch
Type: text/x-patch
Size: 5335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170201/4f119d12/attachment.bin>


More information about the Openmp-commits mailing list