Skip to content
Commit 1a26ff7d authored by Kuba Brecka's avatar Kuba Brecka
Browse files

[tsan] Fix deadlock_detector_stress_test.cc testcase for OS X

On OS X, we don't have pthread spinlocks, let's just use a regular mutex instead. Secondly, pthread_rwlock_t is much larger (200 bytes), so `char padding_[64 - sizeof(pthread_rwlock_t)]` actually underflows.

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

llvm-svn: 253659
parent 8aa56d3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment