~pali/llvm/compiler-rt-trunk

Viewing all changes in revision 9708.

  • Committer: maxim-kuvyrkov
  • Date: 2018-02-21 18:03:50 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:compiler-rt/trunk:325703
Fix racy msan test

Summary:
Child thread may finish before pthread_setname_np() and/or
pthread_getname_np() had a chance to run, which causes these functions
to fail with ENOENT (meaning /proc/self/task/[tid]/comm doesn't exist).

Fix by stalling child thread on a mutex.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D43548

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: