[scudo] Replacing std::atomic with Sanitizer's atomics
authorKostya Kortchinsky <kostyak@google.com>
Fri, 20 Jan 2017 18:32:18 +0000 (18:32 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Fri, 20 Jan 2017 18:32:18 +0000 (18:32 +0000)
commita00b9229c3750df9c6c3edb4a057b407250880b4
tree37ea46ea214072c270e8f928bd7a97659d4e277b
parent856548a616a56fc716a87035198151b3c14fee36
[scudo] Replacing std::atomic with Sanitizer's atomics

Summary:
In an effort to getting rid of dependencies to external libraries, we are
replacing atomic PackedHeader use of std::atomic with Sanitizer's
atomic_uint64_t, which allows us to avoid -latomic.

Reviewers: kcc, phosek, alekseyshl

Reviewed By: alekseyshl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D28864

llvm-svn: 292630
compiler-rt/lib/scudo/scudo_allocator.cpp
compiler-rt/lib/scudo/scudo_allocator.h
compiler-rt/test/scudo/interface.cpp
compiler-rt/test/scudo/lit.cfg
compiler-rt/test/scudo/malloc.cpp
compiler-rt/test/scudo/realloc.cpp