HomePhabricator

[tsan] Fix fork() and fork-based tests for OS X

Authored by kubamracek on Mar 24 2016, 4:54 AM.

Description

[tsan] Fix fork() and fork-based tests for OS X

On OS X, fork() under TSan asserts (in debug builds only) because REAL(fork) calls some intercepted functions, which check that no internal locks are held via CheckNoLocks(). But the wrapper of fork intentionally holds some locks. This patch fixes that by using ScopedIgnoreInterceptors during the call to REAL(fork). After that, all the fork-based tests seem to pass on OS X, so let's just remove all the UNSUPPORTED: darwin annotations we have.

Differential Revision: http://reviews.llvm.org/D18409

llvm-svn: 264261

Details

Committed
kubamracekMar 24 2016, 4:54 AM
Differential Revision
D18409: [tsan] Fix fork() and fork-based tests for OS X
Parents
rG572ca71573e6: [X86][XOP] Support for VPPERM byte shuffle instruction
Branches
Unknown
Tags
Unknown