The system implementation of OSAtomicTestAndClear returns the original bit, but the TSan interceptor has a bug which always returns zero from the function. This patch fixes this and adds a test.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D23061
[tsan] Fix the behavior of OSAtomicTestAndClear ClosedPublic Authored by kubamracek on Aug 2 2016, 7:18 AM.
Details Summary The system implementation of OSAtomicTestAndClear returns the original bit, but the TSan interceptor has a bug which always returns zero from the function. This patch fixes this and adds a test.
Diff Detail Event Timelinekubamracek updated this object. This revision is now accepted and ready to land.Aug 2 2016, 7:33 AM Closed by commit rL277461: [tsan] Fix the behavior of OSAtomicTestAndClear (authored by kuba.brecka). · Explain WhyAug 2 2016, 7:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 66471 lib/tsan/rtl/tsan_interceptors_mac.cc
test/tsan/Darwin/osatomics-bitops.mm
|
This is now bit rather than bit_index.