[asan Win64] Implement atomic_compare_exchange_strong for 8 bit
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/sanitizer_common/sanitizer_atomic_msvc.h | ||
---|---|---|
37 ↗ | (On Diff #62595) | please, align the // NOLINT comment with the previous one |
186 ↗ | (On Diff #62595) | The 4 following line are the same on both 32/64. |
191 ↗ | (On Diff #62595) | lift this line above the #ifdef _WIN64. |
lib/sanitizer_common/sanitizer_atomic_msvc.h | ||
---|---|---|
190 ↗ | (On Diff #62604) | I wonder if it worth keeping assembly for 32-bits if intrinsic are working. |
Comment Actions
I'm wondering why this unittest wasn't failing in 64-bits before you fixed the code:
TEST(SanitizerCommon, AtomicCompareExchangeTest) {
Comment Actions
As I get it, the unittests are using the clang version.
Which means there is no coverage for the MSVC atomics operation.
#if defined(__clang__) || defined(__GNUC__) # include "sanitizer_atomic_clang.h" #elif defined(_MSC_VER) # include "sanitizer_atomic_msvc.h" #else # error "Unsupported compiler" #endif