Revert "[Asan] Cleanup atomic usage in allocator"
authorNico Weber <thakis@chromium.org>
Fri, 4 Sep 2020 14:47:20 +0000 (10:47 -0400)
committerNico Weber <thakis@chromium.org>
Fri, 4 Sep 2020 14:51:08 +0000 (10:51 -0400)
commitdbf04aaade235a0d76c6ad549c091c9fd0ada0e8
tree6880f11845f3903d9cc3e09a163e7b0b315dcc85
parent2966d6e80b77c97f65805920d4d3288885de53c9
Revert "[Asan] Cleanup atomic usage in allocator"

This reverts commit 8b8be6f38ab568d40869205389a002f32f6558a2
and follow-ups 99a93c3a223e3bfc9a9781bfbf98d2fd4551f923,
a9c0bf04043462d43013bc5616aa48f6d3e16b88,
48ac5b4833b60f00f0923db11ea31e7316bc78c6.

It breaks building on Windows, see https://reviews.llvm.org/D86917#2255872
compiler-rt/lib/asan/asan_allocator.cpp
compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h